NLA-lib Explorer

Copy and identity kernels for interleaved matrices

Library · Source module

Copy and identity kernels for interleaved matrices

Matrices are stored by columns with two scalar words per entry. Copy reuses the generic unary map. Identity explicitly writes every word, including off-diagonal entries and imaginary components; its diagonal uses the machine literal one. No matrix-valued primitive is assumed.

Main results

* NLAlib.Ops.PairMatrix.copy copies an interleaved rectangular matrix; NLAlib.Ops.PairMatrix.copyRoutine is the routine callers run. * NLAlib.Ops.PairMatrix.identity initializes a complete interleaved square identity; NLAlib.Ops.PairMatrix.identityRoutine is the routine callers run, with the judgment NLAlib.Ops.PairMatrix.identityRoutine_meets. * NLAlib.Ops.PairMatrix.stmtCost_identity counts every initialized scalar word and diagonal.

Declarations