NLAlib.obliqueProjector
Library · def
The oblique projector \mathbf{\Pi}_{\mathbf{X},\mathbf{S}} = \mathbf{X}(\mathbf{S}\mathbf{X})^{+}\mathbf{S} defined by a basis \mathbf{X} and a sketch \mathbf{S}: the fitted values of the least-squares problem sketched by \mathbf{S}. Total: always idempotent (NLAlib.isIdempotentElem_obliqueProjector), with range \mathbf{X}\operatorname{range}((\mathbf{S}\mathbf{X})^{\mathsf{H}}) inside \operatorname{range}\mathbf{X}; it projects onto \operatorname{range}\mathbf{X} exactly when \operatorname{rank}(\mathbf{S}\mathbf{X}) = \operatorname{rank}\mathbf{X}, and its junk value is \mathbf{0} when \mathbf{S}\mathbf{X} = \mathbf{0}. It is unchanged by \mathbf{X} \mapsto \mathbf{X}\mathbf{M} for invertible \mathbf{M} (under the rank hypothesis), by \mathbf{S} \mapsto c\,\mathbf{S} for c \ne 0 and by \mathbf{S} \mapsto \mathbf{W}\mathbf{S} for \mathbf{W} with orthonormal columns, but not by \mathbf{S} \mapsto \mathbf{M}\mathbf{S} for a general invertible \mathbf{M}, even under the rank hypothesis: it depends on \mathbf{S}^{\mathsf{H}}\mathbf{S}, not only on the row space of \mathbf{S}. The two-bases formula \mathbf{X}(\mathbf{Y}^{\mathsf{H}}\mathbf{X})^{-1}\mathbf{Y}^{\mathsf{H}} is obliqueProjector X Yᴴ (NLAlib.obliqueProjector_of_isUnit). [EpperlyWebber2026, Lemma 5.1, proof]; [TroppYurtseverUdellCevher2017, (4.2), (4.3)]; [CamanoEpperlyMeyerTropp2025, §2.4]; there with a basis of full or equal rank, here total, every shape and rank.
NLAlib.obliqueProjector.{u_1, u_2, u_3, u_7} {𝕜 : Type u_1} [RCLike 𝕜] {k : Type u_2} {m : Type u_3}
{r : Type u_7} [Fintype k] [Fintype m] [Fintype r] (X : Matrix m r 𝕜) (S : Matrix k m 𝕜) :
Matrix m m 𝕜Import NLAlib.Matrix.Subspaces.ObliqueProjector.