diff liboctave/SparseQR.cc @ 10506:bdf5d85cfc5e

replace nzmax by nnz where appropriate in liboctave
author Jaroslav Hajek <highegg@gmail.com>
date Sat, 10 Apr 2010 21:04:55 +0200
parents 12884915a8e4
children 367bfee35ba0
line wrap: on
line diff
--- a/liboctave/SparseQR.cc	Sat Apr 10 11:41:32 2010 -0400
+++ b/liboctave/SparseQR.cc	Sat Apr 10 21:04:55 2010 +0200
@@ -33,7 +33,7 @@
 {
 #ifdef HAVE_CXSPARSE
   CXSPARSE_DNAME () A;
-  A.nzmax = a.nzmax ();
+  A.nzmax = a.nnz ();
   A.m = a.rows ();
   A.n = a.cols ();
   nrows = A.m;
@@ -392,9 +392,9 @@
       SparseQR q (a, 3);
       if (! q.ok ()) 
         return SparseMatrix();
-      x = SparseMatrix (nc, b_nc, b.nzmax());
+      x = SparseMatrix (nc, b_nc, b.nnz());
       x.xcidx(0) = 0;
-      x_nz = b.nzmax();
+      x_nz = b.nnz();
       ii = 0;
       OCTAVE_LOCAL_BUFFER (double, Xx, (b_nr > nc ? b_nr : nc));
       OCTAVE_LOCAL_BUFFER (double, buf, q.S()->m2);
@@ -455,9 +455,9 @@
       SparseQR q (at, 3);
       if (! q.ok ())
         return SparseMatrix();
-      x = SparseMatrix (nc, b_nc, b.nzmax());
+      x = SparseMatrix (nc, b_nc, b.nnz());
       x.xcidx(0) = 0;
-      x_nz = b.nzmax();
+      x_nz = b.nnz();
       ii = 0;
       volatile octave_idx_type nbuf = (nc > q.S()->m2 ? nc : q.S()->m2);
       OCTAVE_LOCAL_BUFFER (double, Xx, (b_nr > nc ? b_nr : nc));
@@ -710,9 +710,9 @@
       SparseQR q (a, 3);
       if (! q.ok ()) 
         return SparseComplexMatrix();
-      x = SparseComplexMatrix (nc, b_nc, b.nzmax());
+      x = SparseComplexMatrix (nc, b_nc, b.nnz());
       x.xcidx(0) = 0;
-      x_nz = b.nzmax();
+      x_nz = b.nnz();
       ii = 0;
       OCTAVE_LOCAL_BUFFER (double, Xx, (b_nr > nc ? b_nr : nc));
       OCTAVE_LOCAL_BUFFER (double, Xz, (b_nr > nc ? b_nr : nc));
@@ -802,9 +802,9 @@
       SparseQR q (at, 3);
       if (! q.ok ())
         return SparseComplexMatrix();
-      x = SparseComplexMatrix (nc, b_nc, b.nzmax());
+      x = SparseComplexMatrix (nc, b_nc, b.nnz());
       x.xcidx(0) = 0;
-      x_nz = b.nzmax();
+      x_nz = b.nnz();
       ii = 0;
       volatile octave_idx_type nbuf = (nc > q.S()->m2 ? nc : q.S()->m2);
       OCTAVE_LOCAL_BUFFER (double, Xx, (b_nr > nc ? b_nr : nc));