NLA-lib Explorer

Slotted logs of Givens rotations

Library · Source module

Slotted logs of Givens rotations

A program that applies Givens rotations records each committed rotation as a self-describing entry (r, p, q): the plane r (rows or columns r, r + 1) and the two inputs p, q of the coefficient program NLAlib.coefficients. The entries live in a slotted static log: ns slots of 1 + 5w words, a valid word (positive iff the slot was accepted) and w entries of five words (r, \Re p, \Im p, \Re q, \Im q). There is no count word: the layout is static, the only natural written is the plane, and an unused entry is the zero fill (0, 0, 0), whose rotation is the identity (NLAlib.givensAt_zero). A trial writes straight into its own slot (the pending entries); acceptance validates the slot. The exact unitary of a log is NLAlib.givensLog of its valid entries (NLAlib.slotEntries). Its replay is NLAlib.Matrix.FinitePrecision.GivensReplay.

Main definitions

* NLAlib.GivensEntry, NLAlib.slotEntries, NLAlib.padEntries, NLAlib.HoldsSlottedLog. * NLAlib.slottedLogRead: the log read back from a store (for measurability). * NLAlib.slottedLogOpen, NLAlib.slottedLogWrite, NLAlib.slottedLogValidate: zero-fill the log, write an entry of a slot, validate a slot.

Main results

* NLAlib.slottedLogOpen_writes, NLAlib.slottedLogWrite_writes, NLAlib.slottedLogValidate_writes: the log programs move the stored log. * NLAlib.isRoundedRowRotation_machineRowRotation, NLAlib.isRoundedColRotation_machineColRotation: the rotations computed from rounded coefficients are rounded Givens rotations.

Declarations