11#ifndef EIGEN_ARCH_CONJ_HELPER_H
12#define EIGEN_ARCH_CONJ_HELPER_H
14#define EIGEN_MAKE_CONJ_HELPER_CPLX_REAL(PACKET_CPLX, PACKET_REAL) \
16 struct conj_helper<PACKET_REAL, PACKET_CPLX, false, false> { \
17 EIGEN_STRONG_INLINE PACKET_CPLX pmadd(const PACKET_REAL& x, \
18 const PACKET_CPLX& y, \
19 const PACKET_CPLX& c) const { \
20 return padd(c, this->pmul(x, y)); \
22 EIGEN_STRONG_INLINE PACKET_CPLX pmul(const PACKET_REAL& x, \
23 const PACKET_CPLX& y) const { \
24 return PACKET_CPLX(Eigen::internal::pmul<PACKET_REAL>(x, y.v)); \
29 struct conj_helper<PACKET_CPLX, PACKET_REAL, false, false> { \
30 EIGEN_STRONG_INLINE PACKET_CPLX pmadd(const PACKET_CPLX& x, \
31 const PACKET_REAL& y, \
32 const PACKET_CPLX& c) const { \
33 return padd(c, this->pmul(x, y)); \
35 EIGEN_STRONG_INLINE PACKET_CPLX pmul(const PACKET_CPLX& x, \
36 const PACKET_REAL& y) const { \
37 return PACKET_CPLX(Eigen::internal::pmul<PACKET_REAL>(x.v, y)); \
62template<
typename LhsType,
typename RhsType,
bool ConjLhs,
bool ConjRhs>
68 {
return this->
pmul(x,
y) +
c; }
75template<
typename LhsScalar,
typename RhsScalar>
81 {
return this->
pmul(x,
y) +
c; }
85 pmul(
const LhsScalar&
x,
const RhsScalar&
y)
const
86 {
return numext::conj(
x *
y); }
90template<
typename Packet,
bool ConjLhs,
bool ConjRhs>
102template<
typename Packet>
#define EIGEN_DEVICE_FUNC
Definition Macros.h:976
#define EIGEN_STRONG_INLINE
Definition Macros.h:917
Scalar Scalar * c
Definition benchVecAdd.cpp:17
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition gnuplot_common_settings.hh:12
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
Definition Complex.h:167
const Scalar & y
Definition MathFunctions.h:821
EIGEN_STRONG_INLINE Packet4f pmadd(const Packet4f &a, const Packet4f &b, const Packet4f &c)
Definition PacketMath.h:827
EIGEN_DEVICE_FUNC Packet pmul(const Packet &a, const Packet &b)
Definition GenericPacketMath.h:237
Namespace containing all symbols from the Eigen library.
Definition bench_norm.cpp:85
Definition BandTriangularSolver.h:13
Determines whether the given binary operation of two numeric types is allowed and what the scalar ret...
Definition XprHelper.h:806
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType pmul(const LhsScalar &x, const RhsScalar &y) const
Definition ConjHelper.h:85
ScalarBinaryOpTraits< LhsScalar, RhsScalar >::ReturnType ResultType
Definition ConjHelper.h:77
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType pmadd(const LhsScalar &x, const RhsScalar &y, const ResultType &c) const
Definition ConjHelper.h:80
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet pmul(const Packet &x, const Packet &y) const
Definition ConjHelper.h:98
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet pmadd(const Packet &x, const Packet &y, const Packet &c) const
Definition ConjHelper.h:94
Packet ResultType
Definition ConjHelper.h:93
Packet ResultType
Definition ConjHelper.h:105
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet pmul(const Packet &x, const Packet &y) const
Definition ConjHelper.h:110
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet pmadd(const Packet &x, const Packet &y, const Packet &c) const
Definition ConjHelper.h:107
Definition ConjHelper.h:63
ScalarBinaryOpTraits< LhsType, RhsType >::ReturnType ResultType
Definition ConjHelper.h:64
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType pmadd(const LhsType &x, const RhsType &y, const ResultType &c) const
Definition ConjHelper.h:67
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ResultType pmul(const LhsType &x, const RhsType &y) const
Definition ConjHelper.h:71
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T & pconj(const T &x) const
Definition ConjHelper.h:57
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T & operator()(const T &x) const
Definition ConjHelper.h:55
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T pconj(const T &x) const
Definition ConjHelper.h:50
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T operator()(const T &x) const
Definition ConjHelper.h:48
Definition ConjHelper.h:44
Definition ForwardDeclarations.h:17
Definition PacketMath.h:47