diff --git a/libinterp/corefcn/qr.cc b/libinterp/corefcn/qr.cc index e453a109e9..6dc5092fa3 100644 --- a/libinterp/corefcn/qr.cc +++ b/libinterp/corefcn/qr.cc @@ -811,7 +811,7 @@ orthogonal basis of @code{span (A)}. %! [q, r, p] = qr (eye (3), 0); %! assert (size (p), [1, 3]); -%!testif ; (__have_feature__ ("SPQR") && __have_feature__ ("CHOLMOD")) || __have_feature__ ("CXSPARSE") <*66488> +%!testif ; (__have_feature__ ("SPQR") && __have_feature__ ("CHOLMOD")) <*66488> %! ## Orientation of 'p' output for sparse matrices %! [q, r, p] = qr (speye (3)); %! assert (size (p), [3, 3]); diff --git a/liboctave/numeric/sparse-qr.cc b/liboctave/numeric/sparse-qr.cc index be0a53f0c7..d0318d2df4 100644 --- a/liboctave/numeric/sparse-qr.cc +++ b/liboctave/numeric/sparse-qr.cc @@ -215,6 +215,12 @@ sparse_qr::sparse_qr_rep::E () const ret(i) = i + 1; return ret; +#elif defined (HAVE_CXSPARSE) + + (*current_liboctave_error_handler) + ("sparse-qr: permutation output is not supported by CXSparse"); + + return ColumnVector (); // needed to suppress compiler warning #else