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
- NLAlib.GivensEntry
- NLAlib.HoldsSlottedLog
- NLAlib.HoldsSlottedLog.close
- NLAlib.HoldsSlottedLog.length_slotEntries_le
- NLAlib.HoldsSlottedLog.of_below
- NLAlib.HoldsSlottedLog.of_validate
- NLAlib.HoldsSlottedLog.of_write_entry
- NLAlib.HoldsSlottedLog.readBlock_entry
- NLAlib.HoldsSlottedLog.reject
- NLAlib.HoldsSlottedLog.slotEntries_read
- NLAlib.HoldsSlottedLog.slottedLogRead_eq
- NLAlib.conjTranspose_givensLog_concat
- NLAlib.embedBlock_conjTranspose
- NLAlib.embedBlock_givensAt
- NLAlib.embedBlock_mul
- NLAlib.embedBlock_one
- NLAlib.embedBlock_zero_self
- NLAlib.entryWords
- NLAlib.flatMap_entryWords_padEntries
- NLAlib.flatMap_entryWords_padEntries_nil
- NLAlib.getD_flatMap_entryWords
- NLAlib.givensAt_zero
- NLAlib.givensLog_flatMap
- NLAlib.givensLog_padEntries
- NLAlib.givensLog_slotEntries_append_some
- NLAlib.givensLog_slotEntries_map_some
- NLAlib.holdsSlottedLog_nil_of_readBlock
- NLAlib.isRoundedColRotation_machineColRotation
- NLAlib.isRoundedRowRotation_machineRowRotation
- NLAlib.length_entryWords
- NLAlib.length_flatMap_entryWords
- NLAlib.linearComplex_zero_zero
- NLAlib.measurable_get_getD
- NLAlib.measurable_givensAt
- NLAlib.measurable_givensCoeffs
- NLAlib.measurable_givensLog_slottedLogRead
- NLAlib.padEntries
- NLAlib.padEntries_padEntries
- NLAlib.planes_slotEntries_append_some
- NLAlib.readsOnly_holdsSlottedLog
- NLAlib.slotEntries
- NLAlib.slotEntries_append
- NLAlib.slotEntries_append_replicate_none
- NLAlib.slotEntries_map_padEntries
- NLAlib.slotEntries_none
- NLAlib.slotEntries_some
- NLAlib.slot_end_le
- NLAlib.slottedLogOpen
- NLAlib.slottedLogOpen_writes
- NLAlib.slottedLogRead
- NLAlib.slottedLogValidate
- NLAlib.slottedLogValidate_writes
- NLAlib.slottedLogValidate_writes_of_pos
- NLAlib.slottedLogWrite
- NLAlib.slottedLogWrite_writes