Create complex arrays. More...
Functions | |
AFAPI af_err | af_cplx (af_array *out, const af_array in) |
C Interface to create a complex array from a single real array. More... | |
AFAPI af_err | af_cplx2 (af_array *out, const af_array real, const af_array imag, const bool batch) |
C Interface to create a complex array from two real arrays. More... | |
AFAPI array | complex (const array &in) |
C++ Interface to create a complex array from a single real array. More... | |
AFAPI array | complex (const array &real_, const array &imag_) |
C++ Interface to create a complex array from two real arrays. More... | |
AFAPI array | complex (const array &real_, const double imag_) |
C++ Interface to create a complex array from a single real array for the real component and a single scalar for each imaginary component. More... | |
AFAPI array | complex (const double real_, const array &imag_) |
C++ Interface to create a complex array from a single scalar for each real component and a single real array for the imaginary component. More... | |
Create complex arrays.
Complex arrays are created from any of the following four inputs:
array b
in the example.array c
in the example.array d
in the example.array e
in the example.Examples:
C Interface to create a complex array from a single real array.
[out] | out | complex array |
[in] | in | real array |
AFAPI af_err af_cplx2 | ( | af_array * | out, |
const af_array | real, | ||
const af_array | imag, | ||
const bool | batch | ||
) |
C Interface to create a complex array from two real arrays.
[out] | out | complex array |
[in] | real | real array to be assigned as the real component of the returned complex array |
[in] | imag | real array to be assigned as the imaginary component of the returned complex array |
[in] | batch | batch mode |
C++ Interface to create a complex array from a single real array.
[in] | in | input array |
C++ Interface to create a complex array from two real arrays.
[in] | real_ | input array to be assigned as the real component of the returned complex array |
[in] | imag_ | input array to be assigned as the imaginary component of the returned complex array |
C++ Interface to create a complex array from a single real array for the real component and a single scalar for each imaginary component.
[in] | real_ | input array to be assigned as the real component of the returned complex array |
[in] | imag_ | single scalar to be assigned as the imaginary component of each value of the returned complex array |
C++ Interface to create a complex array from a single scalar for each real component and a single real array for the imaginary component.
[in] | real_ | single scalar to be assigned as the real component of each value of the returned complex array |
[in] | imag_ | input array to be assigned as the imaginary component of the returned complex array |