NLA-lib Explorer

Sparse updates of stored vectors

Library · Source module

Sparse updates of stored vectors

A patch loop changes a mathematical vector by Function.update at an arbitrary sequence of addresses. Addresses may repeat. Clients prove only the local write and the mathematical update equation; this rule supplies the loop invariant, the untouched entries and the complete buffer footprint. Initializing a matrix and overwriting its diagonal is one such patch loop.

Main results

* NLAlib.Ops.Store.HoldsVec.update_of_eqOff: a local write is a mathematical vector update. * NLAlib.Ops.writes_patch: a loop of local writes follows its mathematical vector recurrence.

Declarations