Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/chordal/decomposition/psd_completion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ function psd_complete!(A::AbstractMatrix{T}, pattern::SparsityPattern) where {T
#sorted using numerical ordering σ(i)
α = get_separators(sntree, j)

ν = collect(ν) #unborks indexing below
α = collect(α) #unborks indexing below

# index set containing the row indices of the lower-triangular zeros in
# column i (i: representative index) sorted by σ(i)
i = ν[1]

ν = collect(ν) #unborks indexing below
α = collect(α) #unborks indexing below

η = collect(i+1:1:N)
filter!(x -> !insorted(x, α) && !insorted(x, ν), η)

Expand All @@ -103,4 +103,3 @@ function psd_complete!(A::AbstractMatrix{T}, pattern::SparsityPattern) where {T
A[:, :] = W[ip, ip]

end

Loading