Mercurial > hg > octave-lyh
diff src/ov-scalar.h @ 5989:e049385342f6
[project @ 2006-09-14 02:10:46 by jwe]
author | jwe |
---|---|
date | Thu, 14 Sep 2006 02:10:46 +0000 |
parents | 85c7dc4afe6b |
children | e60688a1ea07 |
line wrap: on
line diff
--- a/src/ov-scalar.h +++ b/src/ov-scalar.h @@ -142,6 +142,13 @@ NDArray array_value (bool = false) const { return NDArray (dim_vector (1, 1), scalar); } + SparseMatrix sparse_matrix_value (bool = false) const + { return SparseMatrix (Matrix (1, 1, scalar)); } + + // XXX FIXME XXX Need SparseComplexMatrix (Matrix) constructor!!! + SparseComplexMatrix sparse_complex_matrix_value (bool = false) const + { return SparseComplexMatrix (sparse_matrix_value ()); } + octave_value resize (const dim_vector& dv, bool fill = false) const; Complex complex_value (bool = false) const { return scalar; }