Givens coefficients computed from real scalar words
Library · Source module
Givens coefficients computed from real scalar words
Complex inputs use two adjacent real words. The program copies their four components into scratch, computes the radius by four real squares and a square root, and branches on its actual computed zero test. The zero branch returns the identity rotation. The other branch divides conjugated components by the positive radius. No rotation operation is a primitive.
Main results
* NLAlib.coefficientsWithScratch is the scalar coefficient program. * NLAlib.coefficients scopes its seven scratch cells. * NLAlib.roundedGivensCoeffs_eq_ite: the program computes NLAlib.roundedGivensCoeffs on any machine; in exact arithmetic givensCoeffs (NLAlib.roundedGivensCoeffs_eq_givensCoeffs). * NLAlib.coefficientsWithScratch_writes_word, NLAlib.coefficients_writes_word: the routines on any machine; the exact theorems are their corollaries. * NLAlib.coefficientsWithScratch_writes proves the caller-scratch routine total. * NLAlib.coefficients_writes proves the scoped routine computes givensCoeffs. * NLAlib.coefficientsRoutine: the scoped computation as a routine [] (a : 2, b : 2) → (c : 2, s : 2), with its judgment NLAlib.coefficientsRoutine_meets on any machine.
Declarations
- NLAlib.coefficientDivide
- NLAlib.coefficientPrefix
- NLAlib.coefficientRadius
- NLAlib.coefficientRadius_eq
- NLAlib.coefficientZero
- NLAlib.coefficient_radius_eq
- NLAlib.coefficients
- NLAlib.coefficientsRoutine
- NLAlib.coefficientsRoutine_meets
- NLAlib.coefficientsSpec
- NLAlib.coefficientsWithScratch
- NLAlib.coefficientsWithScratch_writes
- NLAlib.coefficientsWithScratch_writes_word
- NLAlib.coefficients_writes
- NLAlib.coefficients_writes_word
- NLAlib.roundedGivensCoeffs_eq_givensCoeffs
- NLAlib.roundedGivensCoeffs_eq_ite