NLA-lib Explorer

Low-rank approximations from a range sketch and a co-range sketch

Library · Source module

Low-rank approximations from a range sketch and a co-range sketch

For \mathbf{A} \in \Bbbk^{m \times n}, a test matrix \mathbf{\Omega} \in \Bbbk^{n \times l} and a co-range test matrix \mathbf{\Psi} \in \Bbbk^{m \times p}, all deterministic here:

* the randomized SVD approximation (range finder) NLAlib.rsvd A Ω, written \mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega}): the projection of \mathbf{A} onto the range of the sketch, two passes over \mathbf{A}; * the generalized Nyström approximation NLAlib.generalizedNystrom A Ω Ψ, written \mathsf{gn}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}) (formula: NLAlib.generalizedNystrom_def): one pass, an oblique projection of \mathbf{A}.

The randomized SVD is the case \mathbf{\Psi} = \mathbf{I}. When \operatorname{rank}(\mathbf{\Psi}^{\mathsf{H}}\mathbf{A}\mathbf{\Omega}) equals \operatorname{rank}(\mathbf{A}\mathbf{\Omega}), the squared Frobenius error of generalized Nyström is the error of the randomized SVD plus a sketch-and-solve excess, exactly; no full rank of \mathbf{A}\mathbf{\Omega} is assumed.

Truncation. Late truncation is spelled truncatedSVD (rsvd A Ω) k, and likewise for the other outputs (truncatedSVD (generalizedNystrom A Ω Ψ) k); it has no name of its own. Early truncation, which replaces the sketch \mathbf{A}\mathbf{\Omega} by its truncated SVD \llbracket\mathbf{A}\mathbf{\Omega}\rrbracket_k before projecting, is named: NLAlib.earlyTruncatedRSVD A Ω k, written \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k), and NLAlib.earlyTruncatedGeneralizedNystrom A Ω Ψ k, written \mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k). Errors are written as \mathbf{A} minus the named output.

Degenerate cases: for empty l, \mathbf{\Omega} = \mathbf{0} or \mathbf{A} = \mathbf{0} all approximations are \mathbf{0}, and NLAlib.generalizedNystrom_eq_self_of_rank_eq then needs \mathbf{A} = \mathbf{0}, which its hypothesis says; for k = 0 the early-truncated outputs are \mathbf{0}.

Main definitions

* NLAlib.rsvd: the randomized SVD approximation. * NLAlib.generalizedNystrom: the generalized Nyström approximation. * NLAlib.earlyTruncatedRSVD, NLAlib.earlyTruncatedGeneralizedNystrom: early truncation.

Main results

* NLAlib.rsvd_eq_obliqueProjector, NLAlib.generalizedNystrom_def, NLAlib.generalizedNystrom_one, NLAlib.sub_rsvd, NLAlib.sub_generalizedNystrom: the source formulas and the residual bridges. * NLAlib.singularValues_sub_rsvd_le, NLAlib.singularValues_sub_rsvd_le_sub_mul: the error of the randomized SVD has singular values at most those of \mathbf{A}, and of the error of every approximation \mathbf{A}\mathbf{\Omega}\mathbf{X} built from the sketch. * NLAlib.frobNorm_sub_generalizedNystrom_sq: generalized Nyström error = randomized SVD error + sketch-and-solve excess. * NLAlib.rsvd_eq_self_of_rank_eq, NLAlib.generalizedNystrom_eq_self_of_rank_eq: exactness at low rank. * NLAlib.generalizedNystrom_eq_mul_sketchAndSolve: the core form through any basis of \operatorname{range}(\mathbf{A}\mathbf{\Omega}). * NLAlib.HasOrthonormalCols.rsvd_mul_mul_conjTranspose, NLAlib.HasOrthonormalCols.generalizedNystrom_mul_mul_conjTranspose: equivariance. * NLAlib.earlyTruncatedRSVD_mul, NLAlib.rank_earlyTruncatedRSVD_le, NLAlib.rank_earlyTruncatedGeneralizedNystrom_le, NLAlib.earlyTruncatedRSVD_of_rank_le, NLAlib.earlyTruncatedGeneralizedNystrom_of_rank_le, NLAlib.sub_earlyTruncatedRSVD, NLAlib.sub_earlyTruncatedGeneralizedNystrom: the early-truncation API. * NLAlib.frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq: early-truncated generalized Nyström error = early-truncated randomized SVD error + sketch-and-solve excess.

Declarations