mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* Added several cast to int of the enums (needed for some compilers)
* Fix a mistake in CwiseNullary. * Added a CoreDeclarions header that declares only the forward declarations and related basic stuffs.
This commit is contained in:
@@ -158,9 +158,9 @@ class ei_corrected_matrix_flags
|
||||
};
|
||||
|
||||
public:
|
||||
enum { ret = is_vectorizable
|
||||
? _flags1 | VectorizableBit
|
||||
: _flags1 & ~VectorizableBit
|
||||
enum { ret = int(is_vectorizable)
|
||||
? int(_flags1) | int(VectorizableBit)
|
||||
: int(_flags1) & ~int(VectorizableBit)
|
||||
};
|
||||
};
|
||||
|
||||
@@ -208,8 +208,8 @@ template<typename T, int n=1> struct ei_nested
|
||||
ei_is_temporary<T>::ret,
|
||||
T,
|
||||
typename ei_meta_if<
|
||||
ei_traits<T>::Flags & EvalBeforeNestingBit
|
||||
|| (n+1) * NumTraits<typename ei_traits<T>::Scalar>::ReadCost < (n-1) * T::CoeffReadCost,
|
||||
int(ei_traits<T>::Flags) & EvalBeforeNestingBit
|
||||
|| (n+1) * int(NumTraits<typename ei_traits<T>::Scalar>::ReadCost) < (n-1) * int(T::CoeffReadCost),
|
||||
typename ei_eval<T>::type,
|
||||
const T&
|
||||
>::ret
|
||||
|
||||
Reference in New Issue
Block a user