#include <arrayfire.h>
Public Member Functions | |
array (int rows, int cols=1, af_type type=AF_SINGLE_REAL) | |
Creates an array of size rows x cols. | |
array () | |
Empty constructor. | |
~array () | |
Destructor. | |
array (const float *src, int rows, int cols=1) | |
array (const clFloatComplex *src, int rows, int cols=1) | |
array (const array &) | |
array | operator= (const array &in) |
void * | host () const |
Get the host side buffer (in RAM) | |
cl_mem | device () const |
Get the device side buffer. | |
array | T () |
Regular transpose. | |
array | H () |
Conjugate transpose (Hermitian) | |
array | conjugate () |
Conjugate of the current array(i.e., 2 + 3i becomes 2 - 3i) | |
array | operator+ (const array &lhs) |
Operate on two arrays. | |
array | operator+ (const float &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator+ (const clFloatComplex &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator* (const array &lhs) |
Operate on two arrays. | |
array | operator* (const float &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator* (const clFloatComplex &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator> (const array &lhs) |
Operate on two arrays. | |
array | operator> (const float &lhs) |
Operate on scalar(rhs) and an array(lhs) | |
array | operator> (const clFloatComplex &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator- (const array &lhs) |
Operate on two arrays. | |
array | operator- (const float &lhs) |
Operate on scalar(rhs) and an array(lhs) | |
array | operator- (const clFloatComplex &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator/ (const array &lhs) |
Operate on two arrays. | |
array | operator/ (const float &lhs) |
Operate on scalar(rhs) and an array(lhs) | |
array | operator/ (const clFloatComplex &lhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator- () |
Public Attributes | |
int | m_rows |
int | m_cols |
cl_mem | m_obj |
af_type | type |
Friends | |
array | operator+ (const float &lhs, array &rhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator* (const float &lhs, array &rhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator> (const float &lhs, array &rhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator- (const float &lhs, array &rhs) |
Operate on scalar(lhs) and an array(rhs) | |
array | operator/ (const float &lhs, array &rhs) |
Operate on scalar(lhs) and an array(rhs) |
examples/blackscholes.cpp, examples/conv.cpp, and examples/fft.cpp.
cl_mem af::array::m_obj |