NLA-lib Explorer

Dense matrix-vector application by streamed scalar arithmetic

Library · Source module

Dense matrix-vector application by streamed scalar arithmetic

The matrix is stored by columns. Each output row streams its products using one temporary scalar cell. Output separation from the data and input vector is the declared admission of the stored-operator model, rather than an assumption that an execution succeeds.

Main results

* NLAlib.Ops.StoredDense.apply performs the row loops with caller-owned temporary. * NLAlib.Ops.StoredDense.impl allocates its one temporary cell. * NLAlib.Ops.StoredDense.apply_writes_word returns the supplied machine's actual row words. * NLAlib.Ops.StoredDense.apply_writes specializes this to the exact matrix-vector product.

Declarations