28 af_cfloat(
const float real = 0,
const float imag = 0) :real(real), imag(imag) {};
36 af_cdouble(
const double real = 0,
const double imag = 0) :real(real), imag(imag) {}
83 AFAPI double abs(
const cdouble &val);
Definition: algorithm.h:14
double imag
Definition: complex.h:34
AFAPI array operator/(const array &lhs, const array &rhs)
Divides two arrays or an array and a value.
AFAPI array operator==(const array &lhs, const array &rhs)
Performs an equality operation on two arrays or an array and a value.
AFAPI cfloat conj(const cfloat &val)
af::af_cfloat cfloat
Definition: complex.h:44
AFAPI array operator*(const array &lhs, const array &rhs)
Multiplies two arrays or an array and a value.
af_cfloat(const float real=0, const float imag=0)
Definition: complex.h:28
AFAPI array operator>>(const array &lhs, const array &rhs)
Performs an right shift operation on two arrays or an array and a value.
float imag
Definition: complex.h:26
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 inequality operation on two arrays or an array and a value.
struct af::af_cdouble af_cdouble
AFAPI array real(const array &in)
C++ Interface for getting real part from complex array.
#define AFAPI
Definition: defines.h:31
AFAPI array operator<<(const array &lhs, const array &rhs)
Performs an left shift operation on two arrays or an array and a value.
double real
Definition: complex.h:33
float real
Definition: complex.h:25
AFAPI array abs(const array &in)
C++ Interface for absolute value.
af_cdouble(const double real=0, const double imag=0)
Definition: complex.h:36
struct af::af_cfloat af_cfloat
af::af_cdouble cdouble
Definition: complex.h:45
AFAPI array operator-(const array &lhs, const array &rhs)
Subtracts two arrays or an array and a value.
AFAPI array operator+(const array &lhs, const array &rhs)
Adds two arrays or an array and a value.