NLA-lib Explorer

Separating matrix work from the full dense instruction count

Library · Source module

Separating matrix work from the full dense instruction count

The zero-matrix-work profile still charges every scalar, sample, literal, query and structural instruction. Matrix work is added from the actual original-operation count of that same run. The instruction budget can therefore stay conservative while the matrix-work estimate uses the algorithm's mathematical invariant.

Main results

* NLAlib.Ops.Dense.work_eq_nonmatrix_add_matrix: exact full-count decomposition. * NLAlib.Ops.Dense.work_le_of_kernelWeight_le: combine independent counter and kernel bounds.

Declarations