Supplied-factor CHOLMOD and precision contracts¶
Factor identity¶
The optional CHOLMOD backend implements the same selected-lower-triangle contract as the Eigen backend: a successful call returns a physical dense factor L with C = L L^T. It leaves the output unchanged on failure. Power-of-two row equilibration uses the existing CovarianceEquilibration policy.
CHOLMOD receives the symmetric lower triangle in compressed sparse column storage. It uses natural ordering, no elimination-tree postorder, and explicit LL factorization. Storage omits exact zeros without thresholding. Numeric extraction consumes the factor. Each call owns and releases its CHOLMOD objects. The returned L owns its values. Solves, inverses, the Frobenius product, and the half log determinant use their supplied arguments through the same dense operations as the Eigen backend.
The upstream CHOLMOD guide distinguishes symmetric factorization from the unsymmetric A A^T contract and documents consumed numeric-factor extraction. Those are different operations: treating a covariance as unsymmetric or reusing the consumed factor changes the requested system.
Select this backend with Meson -Dlinalg_backend=cholmod. CHOLMOD must provide its installed headers and
library; the build accepts its CHOLMOD.pc or SuiteSparse::CHOLMOD CMake target.
The default backend and the distributed factorization policies are unchanged.
Explicit precision algebra¶
InputParameters.use_precision and setUsePrecisionMatrix default to false.
When selected, the direct Cholesky posterior forms P = L-TL-1from its
active factor and applies P to the actual right-hand side in factor row order.
The direct variance path uses diag(K^T P K). GP and Student-t hyperparameter
fits use the canonical Cholesky solves for alpha, so posterior representation
does not change the rounded objective and gradient pair. Specialized
stable-basis and iterative routes keep their own algebra.
No precision matrix survives an invocation. In particular, the posterior epoch does not identify factors borrowed by hyperparameter objective evaluations. A constant epoch therefore gives no permission to reuse an inverse across those factor changes.
Storage and work¶
Let m be the number of scalar training rows and q the number of scalar query
rows. C and physical L remain dense, requiring 16 m^2 bytes together for
binary64 values. CHOLMOD allocates its compressed input, factor and workspace.
For z stored entries, the input arrays use 16 z + 8 (m+1) bytes with 64-bit
indices. This count excludes the object headers. Dense covariance input has
z = m(m+1)/2. Factor fill and supernodal workspace can add quadratic storage;
this backend does not promise a reduction in peak memory or factorization time.
Materializing P requires 8 m^2 bytes. Its construction uses the same amount
of scratch for the triangular inverse. The variance product allocates 8 m q
bytes while P remains live. Distributed precision materialization uses the existing inverse API,
which replicates P on the process group. Its memory cost is per rank, not divided
by rank count. The distributed derivative trace retains its existing local
workspace and contractions.
Inverse construction has cubic work in the dense case. No tolerance pruning,
DBCSR (distributed block compressed sparse row) matrix distribution,
sparse precision model, or speed claim follows from
these interfaces.
Verification scope¶
EigenBackendTest.NoncommutingFactorsRemainIndependentAcrossNestedSolves uses
two dyadic lower factors and noncommuting covariances. It checks exact fixture
reconstruction, alternating supplied-factor solves and inverses, a nested
factorization lifetime, and an explicit Frobenius product. The failure test
checks that an indefinite matrix does not replace the caller’s output.
The retained precision fixtures compare GP predictions, variances, Student-t
predictions and dimer call counts. PrecisionFactorIdentity replaces the
factor repeatedly while its posterior epoch stays fixed. These assertions
check factor ownership independently of any cache key.
check_cholmod_precision.py checks symbolic inverse and covariance identities
and rejects missing, malformed or failed Sollya predicates. The Sollya script
checks six explicit binary64 witnesses, all with small dyadic values.
SuppliedFactorPrecision.lean contains exact matrix theorems and the
rational noncommuting fixtures. These proofs do not bound floating-point
factorization error or establish trajectory, force-call, or walltime parity
for a molecular campaign.