NLA-lib Explorer

Oblique projectors from a basis and a sketch

Library · Source module

Oblique projectors from a basis and a sketch

For a basis \mathbf{X} \in \Bbbk^{m \times r} and a sketch \mathbf{S} \in \Bbbk^{k \times m}, NLAlib.obliqueProjector X S is \mathbf{\Pi}_{\mathbf{X},\mathbf{S}} = \mathbf{X}(\mathbf{S}\mathbf{X})^{+}\mathbf{S}: the fitted values of the least-squares problem \min_{\mathbf{C}} \|\mathbf{S}(\mathbf{X}\mathbf{C} - \mathbf{B})\|_{\mathsf{F}}, as a matrix acting on \mathbf{B}. It is defined for every shape and rank and is always idempotent. It projects onto \operatorname{range}\mathbf{X} exactly when the sketch keeps the rank of \mathbf{X}, written (S * X).rank = X.rank in every statement (Matrix.rank_mul_eq_iff_injOn: \mathbf{S} is injective on \operatorname{range}\mathbf{X}). Randomized SVD, generalized Nyström and sketch-and-solve are all this projector applied to a matrix (NLAlib.Matrix.Factorizations.SketchedLowRank).

The exact error split: under the rank hypothesis, (\mathbf{I} - \mathbf{\Pi})\mathbf{B} = (\mathbf{I} - \mathbf{P}_{\mathbf{X}})\mathbf{B} - \mathbf{\Pi}(\mathbf{I} - \mathbf{P}_{\mathbf{X}})\mathbf{B} with orthogonal terms, so the squared Frobenius error is the orthogonal-projection error plus a sketched term, and the Gram matrices add. The sketched least-squares solution NLAlib.sketchAndSolve A S B, with \mathbf{A}\,\mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{S}, \mathbf{B}) = \mathbf{\Pi}_{\mathbf{A},\mathbf{S}}\mathbf{B} (NLAlib.mul_sketchAndSolve), is in NLAlib.Matrix.Pseudoinverse.LeastSquares.

Degenerate cases: for \mathbf{S}\mathbf{X} = \mathbf{0} (empty k, \mathbf{S} = \mathbf{0}, \mathbf{X} = \mathbf{0}, empty r) the projector is \mathbf{0}, and the rank hypothesis holds iff \mathbf{X} = \mathbf{0}. Without the hypothesis the projector still has range inside \operatorname{range}\mathbf{X}, but it does not fix \mathbf{X} and depends on more than the range of \mathbf{X}.

Main definitions

* NLAlib.obliqueProjector: \mathbf{X}(\mathbf{S}\mathbf{X})^{+}\mathbf{S}.

Main results

* NLAlib.isIdempotentElem_obliqueProjector, NLAlib.rank_obliqueProjector, NLAlib.obliqueProjector_mul_self_iff, NLAlib.range_obliqueProjector: the projector. * NLAlib.obliqueProjector_eq_of_range_eq: it depends on \mathbf{X} only through its range. * NLAlib.obliqueProjector_one, NLAlib.obliqueProjector_conjTranspose_self, NLAlib.obliqueProjector_of_isUnit: the orthogonal and the invertible cases. * NLAlib.HasOrthonormalCols.obliqueProjector_mul_mul_conjTranspose, NLAlib.HasOrthonormalCols.obliqueProjector_mul_left: equivariance and sketch invariance. * NLAlib.exists_hasOrthonormalCols_frames_range_compl, NLAlib.obliqueProjector_mul_one_sub_rangeProjector_mul_eq: a sketched residual in complementary frames of the column space. * NLAlib.one_sub_obliqueProjector_mul, NLAlib.conjTranspose_mul_self_one_sub_obliqueProjector_mul, NLAlib.frobNorm_one_sub_obliqueProjector_mul_sq, NLAlib.SymmetricGauge.matrixNorm_conjTranspose_mul_self_one_sub_obliqueProjector_mul_le: the exact error split.

Declarations