Cleanup because trait<CwiseBinaryOp>::Flags now expose the correct storage order

This commit is contained in:
Gael Guennebaud 2016-12-27 16:55:47 +01:00
parent d32a43e33a
commit ab69a7f6d1

View File

@ -212,8 +212,7 @@ public:
enum {
CoeffReadCost = evaluator<Lhs>::CoeffReadCost + evaluator<Rhs>::CoeffReadCost + functor_traits<BinaryOp>::Cost,
// Expose storage order of the sparse expression
Flags = (XprType::Flags & ~RowMajorBit) | (int(Rhs::Flags)&RowMajorBit)
Flags = XprType::Flags
};
explicit binary_evaluator(const XprType& xpr)
@ -300,8 +299,7 @@ public:
enum {
CoeffReadCost = evaluator<Lhs>::CoeffReadCost + evaluator<Rhs>::CoeffReadCost + functor_traits<BinaryOp>::Cost,
// Expose storage order of the sparse expression
Flags = (XprType::Flags & ~RowMajorBit) | (int(Lhs::Flags)&RowMajorBit)
Flags = XprType::Flags
};
explicit binary_evaluator(const XprType& xpr)
@ -523,8 +521,7 @@ public:
enum {
CoeffReadCost = evaluator<LhsArg>::CoeffReadCost + evaluator<RhsArg>::CoeffReadCost + functor_traits<BinaryOp>::Cost,
// Expose storage order of the sparse expression
Flags = (XprType::Flags & ~RowMajorBit) | (int(RhsArg::Flags)&RowMajorBit)
Flags = XprType::Flags
};
explicit sparse_conjunction_evaluator(const XprType& xpr)
@ -598,8 +595,7 @@ public:
enum {
CoeffReadCost = evaluator<LhsArg>::CoeffReadCost + evaluator<RhsArg>::CoeffReadCost + functor_traits<BinaryOp>::Cost,
// Expose storage order of the sparse expression
Flags = (XprType::Flags & ~RowMajorBit) | (int(LhsArg::Flags)&RowMajorBit)
Flags = XprType::Flags
};
explicit sparse_conjunction_evaluator(const XprType& xpr)