restrict identity() to square matrices; small change helping g++ optimize.

This commit is contained in:
Benoit Jacob
2007-10-14 10:01:25 +00:00
parent 6c8f159635
commit 3f97918760
3 changed files with 10 additions and 9 deletions

View File

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