NLA-lib Explorer

The matrix absolute value

Library · Source module

The matrix absolute value

The absolute value of a rectangular matrix \mathbf{A} is \lvert \mathbf{A} \rvert = (\mathbf{A}^{\mathsf{H}}\mathbf{A})^{1/2}, spelled CFC.sqrt applied to \mathbf{A}^{\mathsf{H}}\mathbf{A}; for a square matrix this is Mathlib's CFC.abs by definition. Its eigenvalues are the singular values of \mathbf{A}, so the nuclear norm is \operatorname{tr} \lvert \mathbf{A} \rvert and the Schatten norms are traces of powers of \mathbf{A}^{\mathsf{H}}\mathbf{A}. For an even natural exponent the trace form, with natural powers, is NLAlib.schattenNorm_two_mul_natCast_pow.

For a Hermitian matrix, \lvert \mathbf{A} \rvert is the functional calculus of \lvert \cdot \rvert at \mathbf{A} (Mathlib's CFC.abs_eq_cfc_norm), and the positive and negative parts \mathbf{A}^{+}, \mathbf{A}^{-} are Mathlib's, with CFC.le_posPart, CFC.posPart_sub_negPart and CFC.abs_eq_posPart_add_negPart.

Main results

* NLAlib.eigenvalue_sqrt_conjTranspose_mul_self: the eigenvalues of \lvert \mathbf{A} \rvert. * NLAlib.nuclearNorm_eq_re_trace_sqrt: \|\mathbf{A}\|_* = \operatorname{tr} \lvert \mathbf{A} \rvert. * NLAlib.schattenNorm_rpow_eq_re_trace_rpow: \|\mathbf{A}\|_{S_p}^p = \operatorname{tr} (\mathbf{A}^{\mathsf{H}}\mathbf{A})^{p/2}. * Matrix.IsHermitian.le_abs, Matrix.IsHermitian.neg_abs_le. * in the Matrix.PosSemidef namespace, the square root as a factor: singularValues_sqrt_sq, frobNorm_sqrt_sub_truncatedSVD_sq, singularGapRatio_le_two_mul_singularGapRatio_sqrt.

Declarations