Squared modulus of an interleaved scalar pair
Library · Source module
Squared modulus of an interleaved scalar pair
The squared components and their sum are computed by two real multiplications and one addition. The exact word theorem is local to these three calls and uses a separate three-word view for their outputs.
Main results
* NLAlib.Ops.PairScalar.normSqRoutine: the routine [] (X : 2) → (T : 3), on the tree NLAlib.Ops.PairScalar.normSq. * NLAlib.Ops.PairScalar.normSqRoutine_meets: its judgment, on any scalar machine. * NLAlib.Ops.PairScalar.normSq_writes_word, NLAlib.Ops.PairScalar.normSq_writes: the judgment read at cells.