mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user