add zero() and identity() static methods, update unit-tests

This commit is contained in:
Benoit Jacob
2007-10-14 09:18:18 +00:00
parent 0f2df4b202
commit 6c8f159635
7 changed files with 167 additions and 8 deletions

View File

@@ -113,6 +113,10 @@ template<typename Scalar, typename Derived> class Object
static Eval<Random<Derived> >
random(int rows = RowsAtCompileTime, int cols = ColsAtCompileTime);
static Zero<Derived>
zero(int rows = RowsAtCompileTime, int cols = ColsAtCompileTime);
static Identity<Derived>
identity(int rows = RowsAtCompileTime, int cols = ColsAtCompileTime);
template<typename OtherDerived>
bool isApprox(