diff src/sparse-xpow.cc @ 10527:b4d2080b6df7

Replace nzmax by nnz as needed
author David Bateman <dbateman@free.fr>
date Fri, 16 Apr 2010 16:14:45 +0200
parents 57a59eae83cc
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/sparse-xpow.cc	Fri Apr 16 12:45:31 2010 +0200
+++ b/src/sparse-xpow.cc	Fri Apr 16 16:14:45 2010 +0200
@@ -307,7 +307,7 @@
 
   octave_value retval;
 
-  octave_idx_type nz = a.nzmax ();
+  octave_idx_type nz = a.nnz ();
 
   if (b <= 0.0)
     {
@@ -474,7 +474,7 @@
     retval = octave_value (NDArray (a.dims (), 1));
   else
     {
-      octave_idx_type nz = a.nzmax ();
+      octave_idx_type nz = a.nnz ();
       SparseComplexMatrix result (a);
       
       for (octave_idx_type i = 0; i < nz; i++)
@@ -602,7 +602,7 @@
     }
   else
     {
-      octave_idx_type nz = a.nzmax ();
+      octave_idx_type nz = a.nnz ();
 
       SparseComplexMatrix result (a);
   
@@ -681,7 +681,7 @@
   else
     {
 
-      octave_idx_type nz = a.nzmax ();
+      octave_idx_type nz = a.nnz ();
 
       SparseComplexMatrix result (a);