Skip to content

Commit

Permalink
Merge pull request #158 from oxfordcontrol/pg/fix_cholesky_error
Browse files Browse the repository at this point in the history
fix psd scaling checks
  • Loading branch information
goulart-paul authored Mar 1, 2024
2 parents b12c095 + bd16842 commit 57a6f8c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/cones/coneops_psdtrianglecone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,14 @@ function update_scaling!(
map((M,v)->_svec_to_mat!(M,v),(S,Z),(s,z))

#compute Cholesky factors (PG: this is allocating)
f.chol1 = cholesky!(S, check = true)
f.chol2 = cholesky!(Z, check = true)
f.chol1 = cholesky!(S, check = false)
f.chol2 = cholesky!(Z, check = false)

# bail if the cholesky factorization fails
if !(issuccess(f.chol1) && issuccess(f.chol2))
return is_scaling_success = false
end

(L1,L2) = (f.chol1.L,f.chol2.L)

#SVD of L2'*L1,
Expand Down

0 comments on commit 57a6f8c

Please sign in to comment.