NLAlib.roundedGivensCoeffs_eq_ite
Library · theorem
The Givens coefficients the coefficient program stores are NLAlib.roundedGivensCoeffs: unless the computed radius (NLAlib.coefficientRadius) is zero, the computed quotients of the conjugated components by it; at a zero radius the literals (1, 0).
NLAlib.roundedGivensCoeffs_eq_ite (M : Ops.Machine ℝ) (u v : ℂ) :
roundedGivensCoeffs M u v =
if coefficientRadius M u v = 0 then
({ re := M.lit 1, im := M.lit 0 }, { re := M.lit 0, im := M.lit 0 })
else
({ re := M.div u.re (coefficientRadius M u v),
im := M.div (M.neg u.im) (coefficientRadius M u v) },
{ re := M.div v.re (coefficientRadius M u v),
im := M.div (M.neg v.im) (coefficientRadius M u v) })Import NLAlib.Matrix.FinitePrecision.GivensCoefficients.