diff options
author | Eugene Zhulenev <ezhulenev@google.com> | 2018-10-10 13:23:52 -0700 |
---|---|---|
committer | Eugene Zhulenev <ezhulenev@google.com> | 2018-10-10 13:23:52 -0700 |
commit | 8e6dc2c81d478ae1c1699ec69eb02cc42a84ffbf (patch) | |
tree | 42e7035b63d617756306065d36e32ca0e46891a1 /Eigen/src/Core/PartialReduxEvaluator.h | |
parent | f3130ee1bab17d7d031d08d031d078707a67e3d1 (diff) |
Fix bug in partial reduction of expressions requiring evaluation
Diffstat (limited to 'Eigen/src/Core/PartialReduxEvaluator.h')
-rw-r--r-- | Eigen/src/Core/PartialReduxEvaluator.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/Core/PartialReduxEvaluator.h b/Eigen/src/Core/PartialReduxEvaluator.h index 0bf8a50e0..d9c0f1224 100644 --- a/Eigen/src/Core/PartialReduxEvaluator.h +++ b/Eigen/src/Core/PartialReduxEvaluator.h @@ -134,7 +134,6 @@ struct evaluator<PartialReduxExpr<ArgType, MemberOp, Direction> > { typedef PartialReduxExpr<ArgType, MemberOp, Direction> XprType; typedef typename internal::nested_eval<ArgType,1>::type ArgTypeNested; - typedef typename internal::remove_all<ArgTypeNested>::type ArgTypeNestedCleaned; typedef typename ArgType::Scalar InputScalar; typedef typename XprType::Scalar Scalar; enum { @@ -194,7 +193,7 @@ struct evaluator<PartialReduxExpr<ArgType, MemberOp, Direction> > PacketType packet(Index idx) const { enum { PacketSize = internal::unpacket_traits<PacketType>::size }; - typedef Block<const ArgType, + typedef Block<typename internal::add_const_on_value_type<ArgTypeNested>::type, Direction==Vertical ? int(ArgType::RowsAtCompileTime) : int(PacketSize), Direction==Vertical ? int(PacketSize) : int(ArgType::ColsAtCompileTime), true /* InnerPanel */> PanelType; |