changeset 15494:9ccf4ffb9fa2

error out when attempting sparse minimum solution and CXSparse is unavailable * sparse-dmsolve.cc (dmsolve<RT, ST, T>): error out if called and not HAVE_CXSPARSE.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 05 Oct 2012 10:14:55 -0400
parents f62c2c57b800
children 05aee5a1ff37
files liboctave/numeric/sparse-dmsolve.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/numeric/sparse-dmsolve.cc
+++ b/liboctave/numeric/sparse-dmsolve.cc
@@ -482,6 +482,8 @@
     }
   return retval;
 #else
+  (*current_liboctave_error_handler)
+    ("CXSPARSE unavailable; cannot solve minimum norm problem");
   return RT ();
 #endif
 }