mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
update the product selection logic to use the Max* sizes
This commit is contained in:
parent
2af9468dd1
commit
898762529e
@ -59,9 +59,9 @@ template<typename Lhs, typename Rhs> struct ei_product_type
|
|||||||
typedef typename ei_cleantype<Lhs>::type _Lhs;
|
typedef typename ei_cleantype<Lhs>::type _Lhs;
|
||||||
typedef typename ei_cleantype<Rhs>::type _Rhs;
|
typedef typename ei_cleantype<Rhs>::type _Rhs;
|
||||||
enum {
|
enum {
|
||||||
Rows = _Lhs::RowsAtCompileTime,
|
Rows = _Lhs::MaxRowsAtCompileTime,
|
||||||
Cols = _Rhs::ColsAtCompileTime,
|
Cols = _Rhs::MaxColsAtCompileTime,
|
||||||
Depth = EIGEN_ENUM_MIN(_Lhs::ColsAtCompileTime,_Rhs::RowsAtCompileTime)
|
Depth = EIGEN_ENUM_MIN(_Lhs::MaxColsAtCompileTime,_Rhs::MaxRowsAtCompileTime)
|
||||||
};
|
};
|
||||||
|
|
||||||
// the splitting into different lines of code here, introducing the _select enums and the typedef below,
|
// the splitting into different lines of code here, introducing the _select enums and the typedef below,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user