* 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:
Benoit Jacob
2008-04-10 10:33:50 +00:00
parent ca448d2537
commit 613c49b475
6 changed files with 51 additions and 17 deletions

View File

@@ -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