From d94d2781d2839e2d7a90beeea5eb5d8efe24fd82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 25 Apr 2025 12:12:25 +0200 Subject: [PATCH] Add PositiveFactorization option --- src/rank.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/rank.jl b/src/rank.jl index c28bd3c..10dae99 100644 --- a/src/rank.jl +++ b/src/rank.jl @@ -363,6 +363,15 @@ Method for computing a ``r \\times n`` matrix `U` of a ``n \\times n`` rank ``r` """ abstract type LowRankLDLTAlgorithm end +""" + <: LowRankLDLTAlgorithm + +Shift the matrix by `shift` times the identity matrix before cholesky. +""" +struct AbsCholeskyLDLT{T} <: LowRankLDLTAlgorithm + shift::T +end + """ ShiftCholeskyLDLT <: LowRankLDLTAlgorithm