Skip to content

Commit

Permalink
Detect factorisation issues in sparse cholesky
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhuong committed Dec 19, 2013
1 parent f625715 commit de30e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sparse-cholesky.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,10 @@
(b (* cholmod-dense) :local (make-dense-from-matlisp b))
(factor (* cholmod-factor) :local (cholmod-analyze As
common)))
(cholmod-set-status common 0)
(cholmod-factorize As factor common)
(when (/= (cholmod-get-status common) 0)
(return-from solve-dense))
(with-alien ((x (* cholmod-dense) :local (cholmod-solve 0
factor
b
Expand Down

0 comments on commit de30e45

Please sign in to comment.