Showing content from http://www.arrayfire.org/docs/group__arith__func__cplx.htm below:
ArrayFire: complex
Create complex arrays. More...
Create complex arrays.
Complex arrays are created from any of the following four inputs:
- a single real array, returning zeros for the imaginary component. See
array b
in the example.
- two real arrays, one for the real component and one for the imaginary component. See
array c
in the example.
- a single real array for the real component and a single scalar for each imaginary component. See
array d
in the example.
- a single scalar for each real component and a single real array for the imaginary component. See
array e
in the example.
Examples:
array a = iota(dim4(2, 3));
array b = complex(a);
array c = complex(a, a);
array d = complex(a, 2);
array e = complex(2, a);
◆ af_cplx()
C Interface to create a complex array from a single real array.
-
Parameters
-
[out] out complex array [in] in real array
-
Returns
-
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ af_cplx2()
C Interface to create a complex array from two real arrays.
-
Parameters
-
[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
-
Returns
-
AF_SUCCESS, if function returns successfully, else an af_err code is given
◆ complex() [1/4]
C++ Interface to create a complex array from a single real array.
-
Parameters
-
-
Returns
-
complex array
◆ complex() [2/4]
C++ Interface to create a complex array from two real arrays.
-
Parameters
-
[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
-
Returns
-
complex array
◆ complex() [3/4]
C++ Interface to create a complex array from a single real array for the real component and a single scalar for each imaginary component.
-
Parameters
-
[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
-
Returns
-
complex array
◆ complex() [4/4]
C++ Interface to create a complex array from a single scalar for each real component and a single real array for the imaginary component.
-
Parameters
-
[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
-
Returns
-
complex array
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4