NLA-lib Explorer

Pivoted Cholesky

Definition (Pivoted Cholesky). At each step, select a remaining diagonal entry of maximal residual value, permute it into the pivot position, and use it to form the next Cholesky column. Zero residual pivots detect exhausted rank in exact arithmetic. This semidefinite, rank-revealing construction is distinct from unpivoted positive-definite Cholesky.

Copy link

Results

Theorem (Rank detection by pivoted Cholesky).

Exactly the first \operatorname{rank} \mathbf{A} pivots of the computed factor are positive, including for singular positive semidefinite inputs. [Higham2002, Theorem 10.9].

Lean statement and details
Matrix.PosSemidef.choleskyLower_choleskyPivotPerm_apply_self_pos_iff.{u_1} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : ℕ} {A : Matrix (Fin n) (Fin n) 𝕜} (hA : A.PosSemidef) (i : Fin n) :
  0 < choleskyLower (A.submatrix ⇑(choleskyPivotPerm A) ⇑(choleskyPivotPerm A)) i i ↔ ↑i < A.rank

Full source on GitHub

Copy link

Mathematical background

Appears under these tasks

Family