aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Map.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-03-09 00:16:07 -0500
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2010-03-09 00:16:07 -0500
commit74a7c5caeeb6631ddd9d97a0832d80f35e888600 (patch)
tree97758ec132e44e5500edcdac9d82720d784e5ea2 /Eigen/src/Core/Map.h
parentb81351cb07f86bba6956b8a123266050b4df114b (diff)
implement the idea that row-vectors have the RowMajorBit and col-vectors don't.
Diffstat (limited to 'Eigen/src/Core/Map.h')
-rw-r--r--Eigen/src/Core/Map.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/Eigen/src/Core/Map.h b/Eigen/src/Core/Map.h
index 6e9a5439e..0608c784f 100644
--- a/Eigen/src/Core/Map.h
+++ b/Eigen/src/Core/Map.h
@@ -128,7 +128,10 @@ template<typename MatrixType, int Options, typename StrideType> class Map
* \param stride optional Stride object, passing the strides.
*/
inline Map(const Scalar* data, const StrideType& stride = StrideType())
- : Base(data), m_stride(stride) {}
+ : Base(data), m_stride(stride)
+ {
+ MatrixType::Base::_check_template_params();
+ }
/** Constructor in the dynamic-size vector case.
*
@@ -137,7 +140,10 @@ template<typename MatrixType, int Options, typename StrideType> class Map
* \param stride optional Stride object, passing the strides.
*/
inline Map(const Scalar* data, int size, const StrideType& stride = StrideType())
- : Base(data, size), m_stride(stride) {}
+ : Base(data, size), m_stride(stride)
+ {
+ MatrixType::Base::_check_template_params();
+ }
/** Constructor in the dynamic-size matrix case.
*
@@ -147,7 +153,11 @@ template<typename MatrixType, int Options, typename StrideType> class Map
* \param stride optional Stride object, passing the strides.
*/
inline Map(const Scalar* data, int rows, int cols, const StrideType& stride = StrideType())
- : Base(data, rows, cols), m_stride(stride) {}
+ : Base(data, rows, cols), m_stride(stride)
+ {
+ MatrixType::Base::_check_template_params();
+ }
+
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Map)