|
My Project
|
|
Go to the documentation of this file.
54 #define DEFINE_OP(OP) \
55 AFAPI af::cfloat operator OP(const af::cfloat &lhs, const af::cfloat &rhs); \
56 AFAPI af::cdouble operator OP(const af::cdouble &lhs, const af::cdouble &rhs); \
66 #define DEFINE_OP(OP) \
67 AFAPI af::cfloat operator OP(const af::cfloat &lhs, const double &rhs); \
68 AFAPI af::cdouble operator OP(const af::cdouble &lhs, const double &rhs); \
75 #if AF_API_VERSION >= 31
77 #define DEFINE_OP(OP) \
78 AFAPI af::cfloat operator OP(const af::cfloat &lhs, const double &rhs); \
79 AFAPI af::cdouble operator OP(const af::cdouble &lhs, const double &rhs); \
85 #endif // AF_API_VERSION
87 #if AF_API_VERSION >= 31
89 #define DEFINE_OP(OP) \
90 AFAPI af::cfloat operator OP(const double &rhs, const af::cfloat &lhs); \
91 AFAPI af::cdouble operator OP(const double &rhs, const af::cdouble &lhs); \
92 AFAPI af::cdouble operator OP(const af::cfloat &lhs, const af::cdouble &rhs); \
93 AFAPI af::cdouble operator OP(const af::cdouble &lhs, const af::cfloat &rhs); \
101 #endif // AF_API_VERSION
struct af::af_cfloat af_cfloat
af_cdouble(const double real=0, const double imag=0)
Definition: complex.h:41
AFAPI array operator!=(const array &lhs, const array &rhs)
Performs an inequality operation on two arrays or an array and a value.
AFAPI cfloat conj(const cfloat &val)
af::af_cfloat cfloat
Definition: complex.h:49
AFAPI array operator==(const array &lhs, const array &rhs)
Performs an equality operation on two arrays or an array and a value.
AFAPI array abs(const array &in)
C++ Interface for absolute value.
#define AFAPI
Definition: defines.h:30
Definition: algorithm.h:13
#define DEFINE_OP(OP)
Definition: complex.h:94
af_cfloat(const float real=0, const float imag=0)
Definition: complex.h:39
struct af::af_cdouble af_cdouble
double imag
Definition: complex.h:39
float real
Definition: complex.h:36
AFAPI array real(const array &in)
C++ Interface for getting real part from complex array.
double real
Definition: complex.h:38
float imag
Definition: complex.h:37
AFAPI array operator>>(const array &lhs, const array &rhs)
Performs an right shift operation on two arrays or an array and a value.
AFAPI array imag(const array &in)
C++ Interface for getting imaginary part from complex array.
AFAPI array operator<<(const array &lhs, const array &rhs)
Performs an left shift operation on two arrays or an array and a value.
af::af_cdouble cdouble
Definition: complex.h:50