diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-21 17:10:23 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-01-21 17:10:23 +0000 |
commit | 5f43a42ee75bac32acd1c8f88c31e374fa9b297b (patch) | |
tree | 69cab3f24454f4751b344d23fbada2e147fd42a9 /Eigen/src/Core/Map.h | |
parent | a5fbf278430827d5945a4df505e63367c8c73a56 (diff) |
* remove set(), revert to old behavior where = resizes
* try to be clever in matrix ctors and operator=: be lazy when we can, always allow
to copy rowvector into columnvector, check the template parameters,
try to factor the code better
* add missing copy ctor in UnalignedType
* fix bug in the traits of DiagonalProduct
* renaming: EIGEN_TUNE_FOR_CPU_CACHE_SIZE
* update the dox a little
Diffstat (limited to 'Eigen/src/Core/Map.h')
-rw-r--r-- | Eigen/src/Core/Map.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Eigen/src/Core/Map.h b/Eigen/src/Core/Map.h index 91ca5d649..5fe13005f 100644 --- a/Eigen/src/Core/Map.h +++ b/Eigen/src/Core/Map.h @@ -102,17 +102,13 @@ template<typename MatrixType, int PacketAccess> class Map * Only for fixed-size matrices and vectors. * \param data The array of data to copy * - * For dynamic-size matrices and vectors, see the variants taking additional int parameters - * for the dimensions. - * - * \sa Matrix(const Scalar *, int), Matrix(const Scalar *, int, int), - * Matrix::Map(const Scalar *) + * \sa Matrix::Map(const Scalar *) */ template<typename _Scalar, int _Rows, int _Cols, int _StorageOrder, int _MaxRows, int _MaxCols> inline Matrix<_Scalar, _Rows, _Cols, _StorageOrder, _MaxRows, _MaxCols> ::Matrix(const Scalar *data) { - *this = Eigen::Map<Matrix>(data); + _set_noalias(Eigen::Map<Matrix>(data)); } #endif // EIGEN_MAP_H |