Mercurial > octave-nkf
diff liboctave/sparse-util.cc @ 15251:50156b22f87c
Don't define SparseCholError if there is no Suitesparse (bug #37134)
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Wed, 29 Aug 2012 16:31:39 -0400 |
parents | 82d51d6e470c |
children |
line wrap: on
line diff
--- a/liboctave/sparse-util.cc Wed Aug 29 10:17:36 2012 -0700 +++ b/liboctave/sparse-util.cc Wed Aug 29 16:31:39 2012 -0400 @@ -32,6 +32,9 @@ #include "sparse-util.h" // FIXME this overload is here due to API change in SuiteSparse (3.1 -> 3.2) + +#ifdef HAVE_CHOLMOD + void SparseCholError (int status, char *file, int line, char *message) { @@ -41,6 +44,7 @@ void SparseCholError (int status, const char *file, int line, const char *message) { + // Ignore CHOLMOD_NOT_POSDEF, since we handle that in Fchol as an // error or exit status. if (status != CHOLMOD_NOT_POSDEF) @@ -63,6 +67,7 @@ return ret; } +#endif //HAVE_CHOLMOD bool sparse_indices_ok (octave_idx_type *r, octave_idx_type *c,