diff src/DLD-FUNCTIONS/__glpk__.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 12884915a8e4
children 52609f73c7d9
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__glpk__.cc	Fri Apr 16 12:45:31 2010 +0200
+++ b/src/DLD-FUNCTIONS/__glpk__.cc	Fri Apr 16 16:14:45 2010 +0200
@@ -519,7 +519,7 @@
 
       mrowsA = A.rows ();
       octave_idx_type Anc = A.cols ();
-      octave_idx_type Anz = A.nzmax ();
+      octave_idx_type Anz = A.nnz ();
       rn.resize (Anz+1, 1);
       cn.resize (Anz+1, 1);
       a.resize (Anz+1, 0.0);