diff options
author | 2007-12-18 15:29:28 +0000 | |
---|---|---|
committer | 2007-12-18 15:29:28 +0000 | |
commit | 3380429e3a93dff0f70fbe3e9646924acafb28cd (patch) | |
tree | 3187f658d54a6eb3d290312c0cfddda0e7d6a3a1 /src/Core/MatrixBase.h | |
parent | a32690a222b8420d355820ccd3e2e24759187972 (diff) |
Improve the "map" API and corresponding Matrix constructors
Diffstat (limited to 'src/Core/MatrixBase.h')
-rw-r--r-- | src/Core/MatrixBase.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Core/MatrixBase.h b/src/Core/MatrixBase.h index e1ee000d8..b2eebe791 100644 --- a/src/Core/MatrixBase.h +++ b/src/Core/MatrixBase.h @@ -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( |