Interface OutputSpec<C>
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[])[];
}
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>
Output specification: a target class + a fwd from typed inputs to the value the class wraps. Optional analytical Jacobian skips FD.