add matrix constructor taking an array. update unit-tests.

This commit is contained in:
Benoit Jacob
2007-12-18 08:56:18 +00:00
parent 53040f53d9
commit 2c656c51e6
4 changed files with 21 additions and 10 deletions

View File

@@ -144,6 +144,8 @@ class Matrix : public MatrixBase<_Scalar, Matrix<_Scalar, _Rows, _Cols> >,
(Storage::m_data)[2] = z;
(Storage::m_data)[3] = w;
}
explicit Matrix(const Scalar *data, int rows = RowsAtCompileTime,
int cols = ColsAtCompileTime);
template<typename OtherDerived>
Matrix(const MatrixBase<Scalar, OtherDerived>& other)