comparison liboctave/MSparse.h @ 10527:b4d2080b6df7

Replace nzmax by nnz as needed
author David Bateman <dbateman@free.fr>
date Fri, 16 Apr 2010 16:14:45 +0200
parents f0266ee4aabe
children c2041adcf234
comparison
equal deleted inserted replaced
10526:660c244d3206 10527:b4d2080b6df7
57 57
58 template <class U> 58 template <class U>
59 MSparse (const Sparse<U>& a) : Sparse<T> (a) { } 59 MSparse (const Sparse<U>& a) : Sparse<T> (a) { }
60 60
61 MSparse (const Array<T>& a, const idx_vector& r, const idx_vector& c, 61 MSparse (const Array<T>& a, const idx_vector& r, const idx_vector& c,
62 octave_idx_type nr = -1, octave_idx_type nc = -1, bool sum_terms = true) 62 octave_idx_type nr = -1, octave_idx_type nc = -1,
63 : Sparse<T> (a, r, c, nr, nc, sum_terms) { } 63 bool sum_terms = true, octave_idx_type nzm = -1)
64 : Sparse<T> (a, r, c, nr, nc, sum_terms, nzm) { }
64 65
65 explicit MSparse (octave_idx_type r, octave_idx_type c, T val) : Sparse<T> (r, c, val) { } 66 explicit MSparse (octave_idx_type r, octave_idx_type c, T val) : Sparse<T> (r, c, val) { }
66 67
67 MSparse (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : Sparse<T> (r, c, num_nz) { } 68 MSparse (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : Sparse<T> (r, c, num_nz) { }
68 69