TorchLean API

NN.Proofs.RuntimeApprox.NF.BackwardOps.Linalg

Linear Algebra NF Reverse Nodes #

Reverse-mode approximation nodes for matrix-vector and matrix-matrix multiplication. They compare supplied real adjoint formulas with rounded NF formulas. The local bounds do not establish native-kernel correspondence or independently prove the adjoint identities.

Matrix multiplication permits both operands to refer to the same context slot. That case adds both cotangent contributions and includes the addition's rounding error in the bound.

Reverse node for matrix-vector multiplication (matVecMulSpec).

VJP uses the standard adjoint identities: δW = δ ⊗ x and δx = Wᵀ δ (expressed in tensor form), with NF error bounds layered over the primitive ops.

Instances For

    Reverse node for matrix multiplication (matMulSpec).

    VJP uses the standard identities δA = δC * Bᵀ and δB = Aᵀ * δC (in appropriate shapes), with NF error bounds layered over the primitive ops.

    Instances For