Mercurial > octave
diff src/ov-base-sparse.h @ 5322:22994a5730f9
[project @ 2005-04-29 13:04:24 by dbateman]
author | dbateman |
---|---|
date | Fri, 29 Apr 2005 13:04:25 +0000 |
parents | 4c8a2e4e0717 |
children | 2857357f9d3c |
line wrap: on
line diff
--- a/src/ov-base-sparse.h Fri Apr 29 05:20:01 2005 +0000 +++ b/src/ov-base-sparse.h Fri Apr 29 13:04:25 2005 +0000 @@ -117,6 +117,10 @@ octave_value all (int dim = 0) const { return matrix.all (dim); } octave_value any (int dim = 0) const { return matrix.any (dim); } + SparseType sparse_type (void) const { return typ; } + SparseType sparse_type (const SparseType& _typ) + { SparseType ret = typ; typ = _typ; return ret; } + bool is_matrix_type (void) const { return true; } bool is_numeric_type (void) const { return true; }