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

@@ -182,7 +182,8 @@ template<typename Scalar, typename Derived> class MatrixBase
static const Ones<Derived> ones(int rows, int cols);
static const Ones<Derived> ones(int size);
static const Ones<Derived> ones();
static const Identity<Derived> identity(int rows = Derived::RowsAtCompileTime);
static const Identity<Derived> identity();
static const Identity<Derived> identity(int rows, int cols);
bool isZero(RealScalar prec = precision<Scalar>()) const;
bool isOnes(RealScalar prec = precision<Scalar>()) const;