Definition (Early-truncated GN). Form \mathbf{Y}_k=[\mathbf{A}\mathbf\Omega]_k, then return
\widehat{\mathbf{A}}=\mathbf{Y}_k(\mathbf\Psi^{\mathsf{H}}\mathbf{Y}_k)^{\dagger}\mathbf\Psi^{\mathsf{H}}\mathbf{A}.
The rank-k subspace is selected from the range sketch before the second sketch completes the approximation. The output has rank at most k; the library fixes a choice when singular values are tied.
Lean statement and details
NLAlib.earlyTruncatedGeneralizedNystrom.{u_1, u_2, u_3, u_4, u_5} {𝕜 : Type u_1} [RCLike 𝕜]
{l : Type u_2} {m : Type u_3} {n : Type u_4} {p : Type u_5} [Fintype l] [Fintype m] [Fintype n]
[Fintype p] (A : Matrix m n 𝕜) (Ω : Matrix n l 𝕜) (Ψ : Matrix m p 𝕜) (k : ℕ) : Matrix m n 𝕜