Mercurial > hg > octave-lyh
diff liboctave/boolSparse.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 | 99e9bae2d81e |
children | 4d1fc073fbb7 |
line wrap: on
line diff
--- a/liboctave/boolSparse.cc +++ b/liboctave/boolSparse.cc @@ -42,10 +42,10 @@ { octave_idx_type nr = rows (); octave_idx_type nc = cols (); - octave_idx_type nz = nzmax (); + octave_idx_type nz = nnz (); octave_idx_type nr_a = a.rows (); octave_idx_type nc_a = a.cols (); - octave_idx_type nz_a = a.nzmax (); + octave_idx_type nz_a = a.nnz (); if (nr != nr_a || nc != nc_a || nz != nz_a) return false; @@ -97,7 +97,7 @@ { octave_idx_type nr = rows (); octave_idx_type nc = cols (); - octave_idx_type nz1 = nzmax (); + octave_idx_type nz1 = nnz (); octave_idx_type nz2 = nr*nc - nz1; SparseBoolMatrix r (nr, nc, nz2);