Entrywise operations on stored Hermitian matrices
Library · Source module
Entrywise operations on stored Hermitian matrices
The cheap steps of a dense eigensolver (a diagonal shift, a scaling, the Hermitian part of a computed product, a trace) touch every entry once. Here they are built from the scalar operations of a NLAlib.FloatMachine, real and imaginary parts separately, as IEEE complex arithmetic does, so their error bounds follow from the machine's contract rather than being assumed. Hermitian structure is kept by construction: NLAlib.FloatMachine.hermFrom computes the strict upper triangle and the real diagonal and mirrors the rest with the machine's exact negation, so its decoding is exactly Hermitian whatever the rounding does with signs.
Main definitions
* NLAlib.FloatMachine.hermFrom: a stored Hermitian matrix from its upper triangle and diagonal. * NLAlib.FloatMachine.hermShift, NLAlib.FloatMachine.hermScale, NLAlib.FloatMachine.hermAvg: \mathbf{X} - c\mathbf{I}, \mathbf{X}/c, (\mathbf{X} + \mathbf{X}^{\mathsf{H}})/c, stored Hermitian. * NLAlib.FloatMachine.negMat, NLAlib.FloatMachine.conjTransposeMat, NLAlib.FloatMachine.identityMat, NLAlib.FloatMachine.zeroMat: exact operations. * NLAlib.FloatMachine.traceRe: the rounded sum of the real parts of the diagonal.
Main results
* NLAlib.isRoundingOf_roundNearest, NLAlib.isRoundingOf_binaryFloatRound. * NLAlib.FloatMachine.IsArithAccurate.isHermitian_decodeMatrix_hermFrom, NLAlib.FloatMachine.IsArithAccurate.decodeMatrix_negMat, NLAlib.FloatMachine.IsArithAccurate.decodeMatrix_conjTransposeMat, NLAlib.FloatMachine.IsArithAccurate.decodeMatrix_identityMat. * NLAlib.FloatMachine.IsArithAccurate.specNorm_sub_decodeMatrix_hermShift_le, NLAlib.FloatMachine.IsArithAccurate.specNorm_sub_decodeMatrix_hermScale_le, NLAlib.FloatMachine.IsArithAccurate.specNorm_sub_decodeMatrix_hermAvg_le, NLAlib.FloatMachine.IsArithAccurate.abs_sum_sub_traceRe_le.
Declarations
- NLAlib.FloatMachine.IsArithAccurate.abs_sum_sub_traceRe_le
- NLAlib.FloatMachine.IsArithAccurate.decodeMatrix_conjTransposeMat
- NLAlib.FloatMachine.IsArithAccurate.decodeMatrix_identityMat
- NLAlib.FloatMachine.IsArithAccurate.decodeMatrix_negMat
- NLAlib.FloatMachine.IsArithAccurate.isHermitian_decodeMatrix_hermFrom
- NLAlib.FloatMachine.IsArithAccurate.specNorm_sub_decodeMatrix_hermAvg_le
- NLAlib.FloatMachine.IsArithAccurate.specNorm_sub_decodeMatrix_hermScale_le
- NLAlib.FloatMachine.IsArithAccurate.specNorm_sub_decodeMatrix_hermShift_le
- NLAlib.FloatMachine.conjTransposeMat
- NLAlib.FloatMachine.hermAvg
- NLAlib.FloatMachine.hermFrom
- NLAlib.FloatMachine.hermScale
- NLAlib.FloatMachine.hermShift
- NLAlib.FloatMachine.identityMat
- NLAlib.FloatMachine.negMat
- NLAlib.FloatMachine.traceRe
- NLAlib.FloatMachine.zeroMat
- NLAlib.abs_sub_le_of_isRoundingOf
- NLAlib.isRoundingOf_binaryFloatRound
- NLAlib.isRoundingOf_roundNearest
- NLAlib.le_and_le_of_isRoundingOf