changeset 17690:79d6af38b96f

Backout cset 1d41b1910531 now that problem with real/image for sparse fixed. * scripts/testfun/assert.m: Undo special treatment of sparse matrices.
author Rik <rik@octave.org>
date Fri, 18 Oct 2013 14:25:29 -0700
parents dd8db3f1c1da
children 8a54a481ecb5
files scripts/testfun/assert.m
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/assert.m	Fri Oct 18 14:19:18 2013 -0700
+++ b/scripts/testfun/assert.m	Fri Oct 18 14:25:29 2013 -0700
@@ -284,13 +284,8 @@
         exclude = errseen | ! isfinite (A_null_imag) & ! isfinite (B_null_imag);
         A_null_imag(exclude) = 0;
         B_null_imag(exclude) = 0;
-        if (issparse (A) || issparse (B))
-          A_null = sparse (complex (full (A_null_real), full (A_null_imag)));
-          B_null = sparse (complex (full (B_null_real), full (B_null_imag)));
-        else
-          A_null = complex (A_null_real, A_null_imag);
-          B_null = complex (B_null_real, B_null_imag);
-        endif
+        A_null = complex (A_null_real, A_null_imag);
+        B_null = complex (B_null_real, B_null_imag);
         if (isscalar (tol))
           mtol = tol * ones (size (A));
         else