mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* add typedefs for matrices/vectors with LargeBit
* add -pedantic to CXXFLAGS * cleanup intricated expressions with && and || which gave warnings because of "missing" parentheses * fix compile error in NumTraits, apparently discovered by -pedantic
This commit is contained in:
@@ -134,10 +134,22 @@ struct ei_traits<Product<Lhs, Rhs, EvalMode> >
|
||||
: (unsigned int)(LhsFlags | RhsFlags) & ~LargeBit )
|
||||
| EvalBeforeAssigningBit
|
||||
| (ei_product_eval_mode<Lhs, Rhs>::value == (int)CacheOptimalProduct ? EvalBeforeNestingBit : 0))
|
||||
& (~(RowMajorBit | VectorizableBit))
|
||||
| (((!(Lhs::Flags & RowMajorBit)) && (Lhs::Flags & VectorizableBit)) ? VectorizableBit
|
||||
: ((Rhs::Flags & RowMajorBit && (Rhs::Flags & VectorizableBit)) ? (RowMajorBit | VectorizableBit)
|
||||
: EIGEN_DEFAULT_MATRIX_STORAGE_ORDER)),
|
||||
& (
|
||||
~(RowMajorBit | VectorizableBit)
|
||||
| (
|
||||
(
|
||||
!(Lhs::Flags & RowMajorBit) && (Lhs::Flags & VectorizableBit)
|
||||
)
|
||||
? VectorizableBit
|
||||
: (
|
||||
(
|
||||
(Rhs::Flags & RowMajorBit) && (Rhs::Flags & VectorizableBit)
|
||||
)
|
||||
? RowMajorBit | VectorizableBit
|
||||
: 0
|
||||
)
|
||||
)
|
||||
),
|
||||
CoeffReadCost
|
||||
= Lhs::ColsAtCompileTime == Dynamic
|
||||
? Dynamic
|
||||
|
||||
Reference in New Issue
Block a user