rework Identity API: no longer restricted to square matrices

This commit is contained in:
Benoit Jacob
2008-01-11 15:56:21 +00:00
parent e092cbc75c
commit bcf7b29185
14 changed files with 67 additions and 41 deletions

View File

@@ -43,7 +43,7 @@ template<typename MatrixType> void adjoint(const MatrixType& m)
m3(rows, cols),
mzero = MatrixType::zero(rows, cols),
identity = Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, MatrixType::Traits::RowsAtCompileTime>
::identity(rows),
::identity(rows, rows),
square = Matrix<Scalar, MatrixType::Traits::RowsAtCompileTime, MatrixType::Traits::RowsAtCompileTime>
::random(rows, rows);
VectorType v1 = VectorType::random(rows),