Function argminNum

    • Scalar-output argmin lens: write does one Newton step against the FD Jacobian, distributing the residual by weights. For typed/multi- output cases use factor(); this M=1 path is kept for its hand-rolled inner loop.

      Parameters

      • inputs: readonly Num[]
      • forward: (xs: readonly number[]) => number
      • weights: readonly number[]
      • opts: ArgminOpts = {}

      Returns Writable<Num>