Mercurial > hg > octave-nkf
diff liboctave/dSparse.h @ 8366:8b1a2555c4e2
implement diagonal matrix objects
* * *
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 03 Dec 2008 13:32:57 +0100 |
parents | 64cf956a109c |
children | 6e9f26506804 |
line wrap: on
line diff
--- a/liboctave/dSparse.h +++ b/liboctave/dSparse.h @@ -29,6 +29,7 @@ #include "CMatrix.h" #include "dColVector.h" #include "CColVector.h" +#include "dDiagMatrix.h" #include "DET.h" #include "MSparse.h" @@ -80,6 +81,8 @@ octave_idx_type nc = -1, bool sum_terms = true) : MSparse<double> (a, r, c, nr, nc, sum_terms) { } + explicit SparseMatrix (const DiagMatrix& a); + SparseMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : MSparse<double> (r, c, num_nz) { } SparseMatrix& operator = (const SparseMatrix& a)