Improve the "map" API and corresponding Matrix constructors

This commit is contained in:
Benoit Jacob
2007-12-18 15:29:28 +00:00
parent a32690a222
commit 3380429e3a
3 changed files with 40 additions and 6 deletions

View File

@@ -95,8 +95,9 @@ template<typename Scalar, typename Derived> class MatrixBase
diagonal(const OtherDerived& coeffs);
DiagonalCoeffs<Derived> diagonal() const;
static Map<Derived>
map(const Scalar* array, int rows = RowsAtCompileTime, int cols = ColsAtCompileTime);
static Map<Derived> map(const Scalar* array, int rows, int cols);
static Map<Derived> map(const Scalar* array, int size);
static Map<Derived> map(const Scalar* array);
template<typename OtherDerived>
bool isApprox(