aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Product.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-03-08 22:55:58 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-03-08 22:55:58 +0100
commit898762529e6dec15143dcaa555a5781127c8b6c6 (patch)
tree710cbb654a1b99082acbfba3b3493a1fb3d9756b /Eigen/src/Core/Product.h
parent2af9468dd1844d59bca93cd7cd5202d6efb4cfc8 (diff)
update the product selection logic to use the Max* sizes
Diffstat (limited to 'Eigen/src/Core/Product.h')
-rw-r--r--Eigen/src/Core/Product.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h
index ea3c8b589..13d858cec 100644
--- a/Eigen/src/Core/Product.h
+++ b/Eigen/src/Core/Product.h
@@ -59,9 +59,9 @@ template<typename Lhs, typename Rhs> struct ei_product_type
typedef typename ei_cleantype<Lhs>::type _Lhs;
typedef typename ei_cleantype<Rhs>::type _Rhs;
enum {
- Rows = _Lhs::RowsAtCompileTime,
- Cols = _Rhs::ColsAtCompileTime,
- Depth = EIGEN_ENUM_MIN(_Lhs::ColsAtCompileTime,_Rhs::RowsAtCompileTime)
+ Rows = _Lhs::MaxRowsAtCompileTime,
+ Cols = _Rhs::MaxColsAtCompileTime,
+ Depth = EIGEN_ENUM_MIN(_Lhs::MaxColsAtCompileTime,_Rhs::MaxRowsAtCompileTime)
};
// the splitting into different lines of code here, introducing the _select enums and the typedef below,