Skip to content

Commit

Permalink
tweak in cholldiv
Browse files Browse the repository at this point in the history
  • Loading branch information
droodman committed Dec 24, 2023
1 parent 49cf7a5 commit e530e1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,12 @@ function cholldiv!(ch::CholeskyPivoted{T}, Y::AbstractVecOrMat{T}) where T # ad
if rnk == len
ldiv!(ch, Y)
else
invpiv = invperm(ch.piv)
for v eachcol(Y)
permute!(v, ch.piv)
v[rnk+1:len] .= zero(T)
LAPACK.potrs!(ch.uplo, view(ch.factors, 1:rnk, 1:rnk), view(v, 1:rnk, :))
invpermute!(v, ch.piv)
permute!(v, invpiv)
end
end
end
Expand Down

0 comments on commit e530e1a

Please sign in to comment.