Mercurial > hg > octave-nkf
diff liboctave/dSparse.h @ 6823:9fddcc586065
[project @ 2007-08-24 08:27:27 by dbateman]
author | dbateman |
---|---|
date | Fri, 24 Aug 2007 08:27:29 +0000 |
parents | 0ce71beb1cf3 |
children | 2d326000e09b |
line wrap: on
line diff
--- a/liboctave/dSparse.h +++ b/liboctave/dSparse.h @@ -50,6 +50,9 @@ SparseMatrix (octave_idx_type r, octave_idx_type c) : MSparse<double> (r, c) { } + SparseMatrix (const dim_vector& dv, octave_idx_type nz = 0) : + MSparse<double> (dv, nz) { } + explicit SparseMatrix (octave_idx_type r, octave_idx_type c, double val) : MSparse<double> (r, c, val) { } @@ -98,6 +101,8 @@ SparseMatrix& insert (const SparseMatrix& a, octave_idx_type r, octave_idx_type c); + SparseMatrix& insert (const SparseMatrix& a, const Array<octave_idx_type>& indx); + SparseMatrix concat (const SparseMatrix& rb, const Array<octave_idx_type>& ra_idx); SparseComplexMatrix concat (const SparseComplexMatrix& rb, const Array<octave_idx_type>& ra_idx);