changeset 29102:40d95224c155 stable

eigs.m: Add necessary compile time conditions to some BISTs. * scripts/sparse/eigs.m: Skip tests that depend on UMFPACK or CHOLMOD if Octave was compiled without them.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 26 Nov 2020 19:18:56 +0100
parents f8c6660f2ccc
children 9f31fe6f79f0 158f9d2320c7
files scripts/sparse/eigs.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/sparse/eigs.m	Tue Nov 24 22:51:56 2020 +0100
+++ b/scripts/sparse/eigs.m	Thu Nov 26 19:18:56 2020 +0100
@@ -488,7 +488,7 @@
 %! opts.issym = 1;  opts.isreal = 1;
 %! d1 = eigs (fn, n, k, 4.1, opts);
 %! assert (d1, eigs (A, k, 4.1), 1e-11);
-%!testif HAVE_ARPACK
+%!testif HAVE_ARPACK, HAVE_UMFPACK
 %! AA = speye (10);
 %! fn = @(x) AA * x;
 %! opts.issym = 1;  opts.isreal = 1;
@@ -1480,7 +1480,7 @@
 %! warning ("off", "Octave:eigs:UnconvergedEigenvalues", "local");
 %! d = eigs (Afun, 100, 6, "lm", opts);
 %! assert (d(6), NaN+1i*NaN);
-%!testif HAVE_ARPACK
+%!testif HAVE_ARPACK, HAVE_CHOLMOD
 %! A = sparse (magic (10));
 %! B = sparse (magic (10)); # not HPD
 %! fail ("eigs (A, B, 4)", "eigs: The matrix B is not positive definite")