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);  \ 
   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);  \ 
array abs(const array &in)
C++ Interface to calculate the absolute value.
array operator==(const array &lhs, const array &rhs)
Performs an equality operation on two arrays or an array and a value.
array imag(const array &in)
C++ Interface to return the imaginary part of a complex array.
array operator!=(const array &lhs, const array &rhs)
Performs an inequality operation on two arrays or an array and a value.
array real(const array &in)
C++ Interface to return the real part of a complex array.
array operator<<(const array &lhs, const array &rhs)
Performs an left shift operation on two arrays or an array and a value.
array operator>>(const array &lhs, const array &rhs)
Performs an right shift operation on two arrays or an array and a value.
cfloat conj(const cfloat &val)
struct af::af_cfloat af_cfloat
struct af::af_cdouble af_cdouble
af_cdouble(const double _real=0, const double _imag=0)
af_cfloat(const float _real=0, const float _imag=0)