mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Make code compile again for older compilers.
See https://stackoverflow.com/questions/7411515/
This commit is contained in:
@@ -589,7 +589,7 @@ public:
|
|||||||
template <typename ResPacketType, typename AccPacketType>
|
template <typename ResPacketType, typename AccPacketType>
|
||||||
EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const
|
EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const
|
||||||
{
|
{
|
||||||
const conj_helper<ResPacketType,ResPacketType,ConjLhs,false> cj;
|
conj_helper<ResPacketType,ResPacketType,ConjLhs,false> cj;
|
||||||
r = cj.pmadd(c,alpha,r);
|
r = cj.pmadd(c,alpha,r);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -927,7 +927,7 @@ public:
|
|||||||
template <typename ResPacketType, typename AccPacketType>
|
template <typename ResPacketType, typename AccPacketType>
|
||||||
EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const
|
EIGEN_STRONG_INLINE void acc(const AccPacketType& c, const ResPacketType& alpha, ResPacketType& r) const
|
||||||
{
|
{
|
||||||
const conj_helper<ResPacketType,ResPacketType,false,ConjRhs> cj;
|
conj_helper<ResPacketType,ResPacketType,false,ConjRhs> cj;
|
||||||
r = cj.pmadd(alpha,c,r);
|
r = cj.pmadd(alpha,c,r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user