mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-13 08:31:48 +08:00
Fix enum conversion warnings in BooleanRedux.
(cherry picked from commit 55c7400db5f43c60ae8f9b475a296e897c05ddb3)
This commit is contained in:
parent
b30a2a527e
commit
f6954e4485
@ -18,7 +18,7 @@ template<typename Derived, int UnrollCount, int InnerSize>
|
||||
struct all_unroller
|
||||
{
|
||||
enum {
|
||||
IsRowMajor = (Derived::Flags & RowMajor),
|
||||
IsRowMajor = (int(Derived::Flags) & int(RowMajor)),
|
||||
i = (UnrollCount-1) / InnerSize,
|
||||
j = (UnrollCount-1) % InnerSize
|
||||
};
|
||||
@ -45,7 +45,7 @@ template<typename Derived, int UnrollCount, int InnerSize>
|
||||
struct any_unroller
|
||||
{
|
||||
enum {
|
||||
IsRowMajor = (Derived::Flags & RowMajor),
|
||||
IsRowMajor = (int(Derived::Flags) & int(RowMajor)),
|
||||
i = (UnrollCount-1) / InnerSize,
|
||||
j = (UnrollCount-1) % InnerSize
|
||||
};
|
||||
@ -84,7 +84,7 @@ EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::all() const
|
||||
enum {
|
||||
unroll = SizeAtCompileTime != Dynamic
|
||||
&& SizeAtCompileTime * (int(Evaluator::CoeffReadCost) + int(NumTraits<Scalar>::AddCost)) <= EIGEN_UNROLLING_LIMIT,
|
||||
IsRowMajor = (internal::traits<Derived>::Flags & RowMajor),
|
||||
IsRowMajor = (int(internal::traits<Derived>::Flags) & int(RowMajor)),
|
||||
InnerSizeAtCompileTime = IsRowMajor ? internal::traits<Derived>::ColsAtCompileTime : internal::traits<Derived>::RowsAtCompileTime
|
||||
};
|
||||
Evaluator evaluator(derived());
|
||||
@ -110,7 +110,7 @@ EIGEN_DEVICE_FUNC inline bool DenseBase<Derived>::any() const
|
||||
enum {
|
||||
unroll = SizeAtCompileTime != Dynamic
|
||||
&& SizeAtCompileTime * (int(Evaluator::CoeffReadCost) + int(NumTraits<Scalar>::AddCost)) <= EIGEN_UNROLLING_LIMIT,
|
||||
IsRowMajor = (internal::traits<Derived>::Flags & RowMajor),
|
||||
IsRowMajor = (int(internal::traits<Derived>::Flags) & int(RowMajor)),
|
||||
InnerSizeAtCompileTime = IsRowMajor ? internal::traits<Derived>::ColsAtCompileTime : internal::traits<Derived>::RowsAtCompileTime
|
||||
};
|
||||
Evaluator evaluator(derived());
|
||||
|
Loading…
x
Reference in New Issue
Block a user