NLA-lib Explorer

Scalar Givens row and column loops

Library · Source module

Scalar Givens row and column loops

Interleaved matrix entries use the existing pair layout in column-major order. One scoped scratch block is reused by every entry-pair rotation in a row or column loop.

Main results

* NLAlib.rotateRowsWithScratch: a scalar loop on two adjacent rows. * NLAlib.rotateColumnsWithScratch: a scalar loop on two adjacent columns. * NLAlib.rotateRowsOn, NLAlib.rotateColumnsOn: the loops on a range of columns or rows, storing NLAlib.machineRowRotationOn, NLAlib.machineColRotationOn (NLAlib.rotateRowsOn_writes_word, NLAlib.rotateColumnsOn_writes_word). * NLAlib.machineRowRotation, NLAlib.machineColRotation: the rotations the loops compute on any machine; in exact arithmetic the Givens products (NLAlib.machineRowRotation_eq, NLAlib.machineColRotation_eq). * NLAlib.rotateRows_writes_word, NLAlib.rotateColumns_writes_word: the loops on any machine; the exact theorems are their corollaries. * NLAlib.rotateRows_writes: the exact left Givens product with scoped scratch. * NLAlib.rotateColumns_writes: the exact right adjoint product with scoped scratch. * NLAlib.rotateRowsRoutine, NLAlib.rotateColumnsRoutine: the two scoped rotations as routines [n, k] (A : 2 n n, C : 2, S : 2) → (A), with their judgments NLAlib.rotateRowsRoutine_meets, NLAlib.rotateColumnsRoutine_meets on any machine.

Declarations