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

@@ -116,7 +116,7 @@ template<typename Scalar, typename Derived> class Object
static Zero<Derived>
zero(int rows = RowsAtCompileTime, int cols = ColsAtCompileTime);
static Identity<Derived>
identity(int rows = RowsAtCompileTime, int cols = ColsAtCompileTime);
identity(int rows = RowsAtCompileTime);
template<typename OtherDerived>
bool isApprox(