Function factor
- factor<O extends Record<string, OutputSpec<any>>>(
inputs: readonly PackedInput<any>[],
outputs: O,
opts?: FactorOpts,
): FactorResult<O>Type Parameters
- O extends Record<string, OutputSpec<any>>
Parameters
- inputs: readonly PackedInput<any>[]
- outputs: O
- opts: FactorOpts = {}
Returns FactorResult<O>
Factor packed inputs into a named record of coupled writable outputs. Each output is
{ Cls, fwd }; writing one solves the Jacobian LSQ for the input deltas. Seebundlefor the 1→M case,factorTuplefor positional.