Mercurial > hg > octave-lyh
diff src/ov-base-mat.h @ 6376:0eac3484e8df
[project @ 2007-03-02 02:18:37 by jwe]
author | jwe |
---|---|
date | Fri, 02 Mar 2007 02:18:38 +0000 |
parents | c20eb7330d13 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/src/ov-base-mat.h +++ b/src/ov-base-mat.h @@ -31,14 +31,13 @@ #include "mx-base.h" #include "str-vec.h" +#include "MatrixType.h" #include "error.h" #include "oct-obj.h" #include "ov-base.h" #include "ov-typeinfo.h" -#include "MatrixType.h" - class Octave_map; class tree_walker; @@ -54,14 +53,7 @@ octave_base_matrix (void) : octave_base_value (), typ (MatrixType ()) { } - octave_base_matrix (const MT& m) - : octave_base_value (), matrix (m), typ (MatrixType ()) - { - if (matrix.ndims () == 0) - matrix.resize (dim_vector (0, 0)); - } - - octave_base_matrix (const MT& m, const MatrixType& t) + octave_base_matrix (const MT& m, const MatrixType& t = MatrixType ()) : octave_base_value (), matrix (m), typ (t) { if (matrix.ndims () == 0)