Skip to content

Commit

Permalink
Add MacaulayNullspace constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jul 2, 2024
1 parent 745c911 commit 69dc288
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/null.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ function Base.getindex(
)
end

function MacaulayNullspace(
ν::MomentMatrix,
rank_check::RankCheck,
ldlt::LowRankLDLTAlgorithm = SVDLDLT(),
)
M = value_matrix(ν)
chol = low_rank_ldlt(M, ldlt, rank_check)
@assert size(chol.L, 1) == LinearAlgebra.checksquare(M)
return MacaulayNullspace(chol.L, ν.basis, accuracy(chol))
end

abstract type MacaulayNullspaceSolver end

function solve(null::MacaulayNullspace, solver::MacaulayNullspaceSolver)
Expand Down

0 comments on commit 69dc288

Please sign in to comment.