mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
more compilation fixes for ICC
This commit is contained in:
parent
9637574e2b
commit
3acd007f9d
@ -89,10 +89,12 @@ struct ei_any_unroller<Derived, Dynamic>
|
|||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline bool DenseBase<Derived>::all() const
|
inline bool DenseBase<Derived>::all() const
|
||||||
{
|
{
|
||||||
const bool unroll = SizeAtCompileTime != Dynamic
|
enum {
|
||||||
|
unroll = SizeAtCompileTime != Dynamic
|
||||||
&& CoeffReadCost != Dynamic
|
&& CoeffReadCost != Dynamic
|
||||||
&& NumTraits<Scalar>::AddCost != Dynamic
|
&& NumTraits<Scalar>::AddCost != Dynamic
|
||||||
&& SizeAtCompileTime * (CoeffReadCost + NumTraits<Scalar>::AddCost) <= EIGEN_UNROLLING_LIMIT;
|
&& SizeAtCompileTime * (CoeffReadCost + NumTraits<Scalar>::AddCost) <= EIGEN_UNROLLING_LIMIT
|
||||||
|
};
|
||||||
if(unroll)
|
if(unroll)
|
||||||
return ei_all_unroller<Derived,
|
return ei_all_unroller<Derived,
|
||||||
unroll ? int(SizeAtCompileTime) : Dynamic
|
unroll ? int(SizeAtCompileTime) : Dynamic
|
||||||
@ -115,10 +117,12 @@ inline bool DenseBase<Derived>::all() const
|
|||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
inline bool DenseBase<Derived>::any() const
|
inline bool DenseBase<Derived>::any() const
|
||||||
{
|
{
|
||||||
const bool unroll = SizeAtCompileTime != Dynamic
|
enum {
|
||||||
|
unroll = SizeAtCompileTime != Dynamic
|
||||||
&& CoeffReadCost != Dynamic
|
&& CoeffReadCost != Dynamic
|
||||||
&& NumTraits<Scalar>::AddCost != Dynamic
|
&& NumTraits<Scalar>::AddCost != Dynamic
|
||||||
&& SizeAtCompileTime * (CoeffReadCost + NumTraits<Scalar>::AddCost) <= EIGEN_UNROLLING_LIMIT;
|
&& SizeAtCompileTime * (CoeffReadCost + NumTraits<Scalar>::AddCost) <= EIGEN_UNROLLING_LIMIT
|
||||||
|
};
|
||||||
if(unroll)
|
if(unroll)
|
||||||
return ei_any_unroller<Derived,
|
return ei_any_unroller<Derived,
|
||||||
unroll ? int(SizeAtCompileTime) : Dynamic
|
unroll ? int(SizeAtCompileTime) : Dynamic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user