NLA-lib Explorer

Filling a stored vector

Library · Source module

Filling a stored vector

A nullary operation (a literal) written to each entry of a vector is a counted loop. It needs only room for the output, so a routine can give its output words a value before a computation that may stop early.

Main definitions

* NLAlib.Ops.fillMap: the loop. * NLAlib.Ops.fillRoutine, NLAlib.Ops.fillSpec: the loop as a routine [n] () → (y : n), and its specification. The fill with the literal zero initializes the iterate of the conjugate gradient solvers and the output tails of Lanczos.

Main results

* NLAlib.Ops.fillMap_writes, NLAlib.Ops.fillMap_writes_readBlock: the run, which writes the value of the operation to every entry and keeps the tape position. * NLAlib.Ops.fillRoutine_meets: the routine meets its specification.

Declarations