create complex arrays More...

Functions

AFAPI af_err af_cplx2 (af_array *out, const af_array real, const af_array imaginary, const bool batch)
 C Interface for creating complex array from two input arrays. More...
 
AFAPI af_err af_cplx (af_array *out, const af_array in)
 C Interface for creating complex array from real array. More...
 
AFAPI array complex (const array &real, const array &imaginary)
 C++ Interface for creating complex array from two inputs. More...
 
AFAPI array complex (const array &real, const double imaginary)
 C++ Interface for creating complex array from two inputs. More...
 
AFAPI array complex (const double real, const array &imaginary)
 C++ Interface for creating complex array from two inputs. More...
 
AFAPI array complex (const array &in)
 C++ Interface for creating complex array from real array. More...
 

Detailed Description

create complex arrays

Function Documentation

◆ af_cplx()

AFAPI af_err af_cplx ( af_array out,
const af_array  in 
)

C Interface for creating complex array from real array.

Parameters
[out]outwill contain complex array created from real input in
[in]inis real array
Returns
AF_SUCCESS if the execution completes properly

◆ af_cplx2()

AFAPI af_err af_cplx2 ( af_array out,
const af_array  real,
const af_array  imaginary,
const bool  batch 
)

C Interface for creating complex array from two input arrays.

Parameters
[out]outwill contain the complex array generated from inputs
[in]realis real array
[in]imaginaryis imaginary array
[in]batchspecifies if operations need to be performed in batch mode
Returns
AF_SUCCESS if the execution completes properly

◆ complex() [1/4]

AFAPI array af::complex ( const array real,
const array imaginary 
)

C++ Interface for creating complex array from two inputs.

Creates a complex number from two sets of inputs. The left hand side is the real part and the right hand side is the imaginary part. This function accepts two af::array or one af::array and a scalar as nputs.

Parameters
[in]realis real value(s)
[in]imaginaryis imaginary value(s)
Returns
complex array from inputs
Examples:
graphics/fractal.cpp.

◆ complex() [2/4]

AFAPI array af::complex ( const array real,
const double  imaginary 
)

C++ Interface for creating complex array from two inputs.

Creates a complex number from two sets of inputs. The left hand side is the real part and the right hand side is the imaginary part. This function accepts two af::array or one af::array and a scalar as nputs.

Parameters
[in]realis real value(s)
[in]imaginaryis imaginary value(s)
Returns
complex array from inputs

◆ complex() [3/4]

AFAPI array af::complex ( const double  real,
const array imaginary 
)

C++ Interface for creating complex array from two inputs.

Creates a complex number from two sets of inputs. The left hand side is the real part and the right hand side is the imaginary part. This function accepts two af::array or one af::array and a scalar as nputs.

Parameters
[in]realis real value(s)
[in]imaginaryis imaginary value(s)
Returns
complex array from inputs

◆ complex() [4/4]

AFAPI array af::complex ( const array in)

C++ Interface for creating complex array from real array.

Parameters
[in]inis real array
Returns
complex array from in