Mercurial > hg > octave-lyh
diff src/ov.cc @ 6863:3c64128e621c
[project @ 2007-09-05 07:52:48 by dbateman]
author | dbateman |
---|---|
date | Wed, 05 Sep 2007 07:53:45 +0000 |
parents | ed74670db09b |
children | 83619ae96c1d |
line wrap: on
line diff
--- a/src/ov.cc +++ b/src/ov.cc @@ -534,12 +534,24 @@ maybe_mutate (); } +octave_value::octave_value (const Sparse<double>& m, const MatrixType &t) + : rep (new octave_sparse_matrix (m, t)) +{ + maybe_mutate (); +} + octave_value::octave_value (const SparseComplexMatrix& m, const MatrixType &t) : rep (new octave_sparse_complex_matrix (m, t)) { maybe_mutate (); } +octave_value::octave_value (const Sparse<Complex>& m, const MatrixType &t) + : rep (new octave_sparse_complex_matrix (m, t)) +{ + maybe_mutate (); +} + octave_value::octave_value (const SparseBoolMatrix& bm, const MatrixType &t) : rep (new octave_sparse_bool_matrix (bm, t)) {