Interface OutputSpec<C>

    Output specification: a target class + a fwd from typed inputs to the value the class wraps. Optional analytical Jacobian skips FD.

    interface OutputSpec<C extends new (...args: never[]) => Cell<any>> {
        Cls: C;
        fwd: (inputs: readonly any[]) => Inner<InstanceType<C>>;
        jacobian?: (inputs: readonly any[]) => readonly (readonly number[])[];
    }

    Type Parameters

    • C extends new (...args: never[]) => Cell<any>
    Index

    Properties

    Properties

    Cls: C
    fwd: (inputs: readonly any[]) => Inner<InstanceType<C>>
    jacobian?: (inputs: readonly any[]) => readonly (readonly number[])[]

    Optional analytical Jacobian. Returns dim(Cls) rows, each of length sum(input pack dims). If supplied for ALL outputs, FD is skipped entirely → faster AND exact (no eps drift).