diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-12-27 16:35:45 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-12-27 16:35:45 +0100 |
commit | d32a43e33a01631745aa4c0e450153f2f3ac6b9e (patch) | |
tree | 63aca8b11ffd682259edcce744f4e7809cd71a8e /Eigen/src/Core/CwiseBinaryOp.h | |
parent | 71362674613a552fd157e175aabfc0e85877bebd (diff) |
Make sure that traits<CwiseBinaryOp>::Flags reports the correct storage order so that methods like .outerSize()/.innerSize() work properly.
Diffstat (limited to 'Eigen/src/Core/CwiseBinaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseBinaryOp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/CwiseBinaryOp.h b/Eigen/src/Core/CwiseBinaryOp.h index 9ddbfe286..a36765e39 100644 --- a/Eigen/src/Core/CwiseBinaryOp.h +++ b/Eigen/src/Core/CwiseBinaryOp.h @@ -46,7 +46,7 @@ struct traits<CwiseBinaryOp<BinaryOp, Lhs, Rhs> > typedef typename remove_reference<LhsNested>::type _LhsNested; typedef typename remove_reference<RhsNested>::type _RhsNested; enum { - Flags = _LhsNested::Flags & RowMajorBit + Flags = cwise_promote_storage_order<typename traits<Lhs>::StorageKind,typename traits<Rhs>::StorageKind,_LhsNested::Flags & RowMajorBit,_RhsNested::Flags & RowMajorBit>::value }; }; } // end namespace internal |