NLA-lib Explorer

Generalized singular value decomposition

Library · Source module

Generalized singular value decomposition

For rectangular matrices with a common column type, NLAlib.IsGSVD A B X c s records invertible common right coordinates that diagonalize both Gram matrices. The nonnegative coordinate pairs satisfy c_i^2+s_i^2=1 on the active coordinates and vanish together on the common kernel. The columns of \mathbf{X} need not be orthonormal.

This is the normalized Gram formulation of the GSVD in [PaigeSaunders1981]. Active and inactive coordinates are represented by subsets of the common column type, without an ordering or relative row-dimension assumption. Proof material adapted from tchen-research/NLAlib at 77514ce42a0e437d837797a063ac161f41022730, NLAlib/Matrix/Factorizations/GeneralizedSVD.lean.

Main results

* NLAlib.exists_isGSVD: existence for every rectangular pair, including rank deficiency. * NLAlib.IsGSVD.rank_fromRows: the active-coordinate count is the stacked rank. * NLAlib.IsGSVD.mulVec_eq_zero_iff: the common kernel in generalized singular coordinates. * NLAlib.IsGSVD.hasOrthonormalCols_div: normalized positive columns are orthonormal. * NLAlib.IsGSVD.col_mul_eq_zero: a zero generalized singular value gives a zero column. * NLAlib.IsGSVD.ker_inf_ker_eq_span: inactive columns span the common kernel.

NLAlib.IsGSVD.swap exchanges the pair, so the column results apply to either matrix.

Declarations