Matrix(int,int) constructor no longer takes default arguments.

Instead, introduce Matrix() and Matrix(int); however, dynamic dimensions
are required to be specified in the constructor (we no longer default to 1)
This commit is contained in:
Benoit Jacob
2007-11-26 09:11:12 +00:00
parent 5309ef5b5e
commit a587346b47
2 changed files with 33 additions and 4 deletions

View File

@@ -80,8 +80,9 @@ class Matrix : public Object<_Scalar, Matrix<_Scalar, _Rows, _Cols> >,
EIGEN_INHERIT_SCALAR_ASSIGNMENT_OPERATOR(Matrix, *=)
EIGEN_INHERIT_SCALAR_ASSIGNMENT_OPERATOR(Matrix, /=)
explicit Matrix(int rows = RowsAtCompileTime,
int cols = ColsAtCompileTime) : Storage(rows, cols) {}
explicit Matrix() : Storage() {}
explicit Matrix(int dim) : Storage(dim) {}
explicit Matrix(int rows, int cols) : Storage(rows, cols) {}
template<typename OtherDerived>
Matrix(const Object<Scalar, OtherDerived>& other)
: Storage(other.rows(), other.cols())