A high-performance general-purpose compute library
af Namespace Reference

Data Structures

struct  af_cdouble
 
struct  af_cfloat
 
class  array
 A multi dimensional data container. More...
 
class  dim4
 Generic object that represents size and shape. More...
 
struct  dtype_traits
 
struct  dtype_traits< af::cdouble >
 
struct  dtype_traits< af::cfloat >
 
struct  dtype_traits< char >
 
struct  dtype_traits< double >
 
struct  dtype_traits< float >
 
struct  dtype_traits< half >
 
struct  dtype_traits< int >
 
struct  dtype_traits< long long >
 
struct  dtype_traits< short >
 
struct  dtype_traits< std::complex< double > >
 
struct  dtype_traits< std::complex< float > >
 
struct  dtype_traits< unsigned >
 
struct  dtype_traits< unsigned char >
 
struct  dtype_traits< unsigned long long >
 
struct  dtype_traits< unsigned short >
 
class  event
 C++ RAII interface for manipulating events. More...
 
class  exception
 An ArrayFire exception class. More...
 
class  features
 Represents a feature returned by a feature detector. More...
 
class  index
 Wrapper for af_index. More...
 
class  randomEngine
 C++ Interface - Random Number Generation Engine Class. More...
 
class  seq
 seq is used to create sequences for indexing af::array More...
 
struct  timer
 Internal timer object. More...
 
class  Window
 Window object to render af::arrays. More...
 

Typedefs

typedef struct af::af_cfloat af_cfloat
 
typedef struct af::af_cdouble af_cdouble
 
typedef af::af_cfloat cfloat
 
typedef af::af_cdouble cdouble
 
typedef af_dtype dtype
 
typedef af_source source
 
typedef af_interp_type interpType
 
typedef af_border_type borderType
 
typedef af_connectivity connectivity
 
typedef af_match_type matchType
 
typedef af_cspace_t CSpace
 
typedef af_someenum_t SomeEnum
 
typedef af_mat_prop trans
 
typedef af_conv_mode convMode
 
typedef af_conv_domain convDomain
 
typedef af_mat_prop matProp
 
typedef af_colormap ColorMap
 
typedef af_norm_type normType
 
typedef af_ycc_std YCCStd
 
typedef af_image_format imageFormat
 
typedef af_backend Backend
 
typedef af_marker_type markerType
 
typedef af_moment_type momentType
 
typedef af_storage storage
 
typedef af_binary_op binaryOp
 
typedef af_random_engine_type randomEngineType
 
typedef af_canny_threshold cannyThreshold
 
typedef af_flux_function fluxFunction
 
typedef af_diffusion_eq diffusionEq
 
typedef af_topk_function topkFunction
 
typedef af_var_bias varBias
 
typedef af_iterative_deconv_algo iterativeDeconvAlgo
 
typedef af_inverse_deconv_algo inverseDeconvAlgo
 
typedef af_conv_gradient_type convGradientType
 
typedef array(* batchFunc_t) (const array &lhs, const array &rhs)
 
typedef af_half half
 
typedef struct af::timer timer
 Internal timer object.
 

Functions

array sum (const array &in, const int dim=-1)
 C++ Interface to sum array elements over a given dimension.
 
array sum (const array &in, const int dim, const double nanval)
 C++ Interface to sum array elements over a given dimension, replacing any NaNs with a specified value.
 
void sumByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to sum array elements over a given dimension, according to an array of keys.
 
void sumByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim, const double nanval)
 C++ Interface to sum array elements over a given dimension, replacing any NaNs with a specified value, according to an array of keys.
 
array product (const array &in, const int dim=-1)
 C++ Interface to multiply array elements over a given dimension.
 
array product (const array &in, const int dim, const double nanval)
 C++ Interface to multiply array elements over a given dimension, replacing any NaNs with a specified value.
 
void productByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to multiply array elements over a given dimension, according to an array of keys.
 
void productByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim, const double nanval)
 C++ Interface to multiply array elements over a given dimension, replacing any NaNs with a specified value, according to an array of keys.
 
array min (const array &in, const int dim=-1)
 C++ Interface to return the minimum along a given dimension.
 
void minByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to return the minimum along a given dimension, according to an array of keys.
 
array max (const array &in, const int dim=-1)
 C++ Interface to return the maximum along a given dimension.
 
void maxByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to return the maximum along a given dimension, according to an array of keys.
 
void max (array &val, array &idx, const array &in, const array &ragged_len, const int dim)
 C++ Interface to return the ragged maximum along a given dimension.
 
array allTrue (const array &in, const int dim=-1)
 C++ Interface to check if all values along a given dimension are true.
 
void allTrueByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to check if all values along a given dimension are true, according to an array of keys.
 
array anyTrue (const array &in, const int dim=-1)
 C++ Interface to check if any values along a given dimension are true.
 
void anyTrueByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to check if any values along a given dimension are true, according to an array of keys.
 
array count (const array &in, const int dim=-1)
 C++ Interface to count non-zero values in an array along a given dimension.
 
void countByKey (array &keys_out, array &vals_out, const array &keys, const array &vals, const int dim=-1)
 C++ Interface to count non-zero values in an array, according to an array of keys.
 
template<typename T >
sum (const array &in)
 C++ Interface to sum array elements over all dimensions.
 
template<typename T >
sum (const array &in, double nanval)
 C++ Interface to sum array elements over all dimensions, replacing any NaNs with a specified value.
 
template<typename T >
product (const array &in)
 C++ Interface to multiply array elements over the first non-singleton dimension.
 
template<typename T >
product (const array &in, double nanval)
 C++ Interface to multiply array elements over the first non-singleton dimension, replacing any NaNs with a specified value.
 
template<typename T >
min (const array &in)
 C++ Interface to return the minimum along the first non-singleton dimension.
 
template<typename T >
max (const array &in)
 C++ Interface to return the maximum along the first non-singleton dimension.
 
template<typename T >
allTrue (const array &in)
 C++ Interface to check if all values along the first non-singleton dimension are true.
 
template<typename T >
anyTrue (const array &in)
 C++ Interface to check if any values along the first non-singleton dimension are true.
 
template<typename T >
count (const array &in)
 C++ Interface to count non-zero values along the first non-singleton dimension.
 
void min (array &val, array &idx, const array &in, const int dim=-1)
 C++ Interface to return the minimum and its location along a given dimension.
 
void max (array &val, array &idx, const array &in, const int dim=-1)
 C++ Interface to return the maximum and its location along a given dimension.
 
template<typename T >
void min (T *val, unsigned *idx, const array &in)
 C++ Interface to return the minimum and its location over all dimensions.
 
template<typename T >
void max (T *val, unsigned *idx, const array &in)
 C++ Interface to return the maximum and its location over all dimensions.
 
array accum (const array &in, const int dim=0)
 C++ Interface to evaluate the cumulative sum (inclusive) along a given dimension.
 
array scan (const array &in, const int dim=0, binaryOp op=AF_BINARY_ADD, bool inclusive_scan=true)
 C++ Interface to scan an array (generalized) over a given dimension.
 
array scanByKey (const array &key, const array &in, const int dim=0, binaryOp op=AF_BINARY_ADD, bool inclusive_scan=true)
 C++ Interface to scan an array (generalized) over a given dimension, according to an array of keys.
 
array where (const array &in)
 C++ Interface to locate the indices of the non-zero values in an array.
 
array diff1 (const array &in, const int dim=0)
 C++ Interface to calculate the first order difference in an array over a given dimension.
 
array diff2 (const array &in, const int dim=0)
 C++ Interface to calculate the second order difference in an array over a given dimension.
 
array sort (const array &in, const unsigned dim=0, const bool isAscending=true)
 C++ Interface to sort an array over a given dimension.
 
void sort (array &out, array &indices, const array &in, const unsigned dim=0, const bool isAscending=true)
 C++ Interface to sort an array over a given dimension and to return the original indices.
 
void sort (array &out_keys, array &out_values, const array &keys, const array &values, const unsigned dim=0, const bool isAscending=true)
 C++ Interface to sort an array over a given dimension, according to an array of keys.
 
array setUnique (const array &in, const bool is_sorted=false)
 C++ Interface to return the unique values in an array.
 
array setUnion (const array &first, const array &second, const bool is_unique=false)
 C++ Interface to evaluate the union of two arrays.
 
array setIntersect (const array &first, const array &second, const bool is_unique=false)
 C++ Interface to evaluate the intersection of two arrays.
 
array min (const array &lhs, const array &rhs)
 C++ Interface to find the elementwise minimum between two arrays.
 
array min (const array &lhs, const double rhs)
 C++ Interface to find the elementwise minimum between an array and a scalar value.
 
array min (const double lhs, const array &rhs)
 C++ Interface to find the elementwise minimum between an array and a scalar value.
 
array max (const array &lhs, const array &rhs)
 C++ Interface to find the elementwise maximum between two arrays.
 
array max (const array &lhs, const double rhs)
 C++ Interface to find the elementwise maximum between an array and a scalar value.
 
array max (const double lhs, const array &rhs)
 C++ Interface to find the elementwise maximum between an array and a scalar value.
 
array abs (const array &in)
 C++ Interface to calculate the absolute value.
 
array arg (const array &in)
 C++ Interface to calculate the phase angle (in radians) of a complex array.
 
array sign (const array &in)
 C++ Interface to return the sign of elements in an array.
 
array round (const array &in)
 C++ Interface to round numbers.
 
array trunc (const array &in)
 C++ Interface to truncate numbers.
 
array floor (const array &in)
 C++ Interface to floor numbers.
 
array ceil (const array &in)
 C++ Interface to ceil numbers.
 
array sin (const array &in)
 C++ Interface to evaluate the sine function.
 
array cos (const array &in)
 C++ Interface to evaluate the cosine function.
 
array tan (const array &in)
 C++ Interface to evaluate the tangent function.
 
array asin (const array &in)
 C++ Interface to evaluate the inverse sine function.
 
array acos (const array &in)
 C++ Interface to evaluate the inverse cosine function.
 
array atan (const array &in)
 C++ Interface to evaluate the inverse tangent function.
 
array sinh (const array &in)
 C++ Interface to evaluate the hyperbolic sine function.
 
array cosh (const array &in)
 C++ Interface to evaluate the hyperbolic cosine function.
 
array tanh (const array &in)
 C++ Interface to evaluate the hyperbolic tangent function.
 
array asinh (const array &in)
 C++ Interface to evaluate the inverse hyperbolic sine function.
 
array acosh (const array &in)
 C++ Interface to evaluate the inverse hyperbolic cosine function.
 
array atanh (const array &in)
 C++ Interface to evaluate the inverse hyperbolic tangent function.
 
array real (const array &in)
 C++ Interface to return the real part of a complex array.
 
array imag (const array &in)
 C++ Interface to return the imaginary part of a complex array.
 
array conjg (const array &in)
 C++ Interface to calculate the complex conjugate of an input array.
 
array root (const array &nth_root, const array &value)
 C++ Interface to evaluate the nth root.
 
array root (const array &nth_root, const double value)
 C++ Interface to evaluate the nth root.
 
array root (const double nth_root, const array &value)
 C++ Interface to evaluate the nth root.
 
array sigmoid (const array &in)
 C++ Interface to evaluate the logistical sigmoid function.
 
array exp (const array &in)
 C++ Interface to evaluate the exponential.
 
array expm1 (const array &in)
 C++ Interface to evaluate the exponential of an array minus 1, exp(in) - 1.
 
array erf (const array &in)
 C++ Interface to evaluate the error function.
 
array erfc (const array &in)
 C++ Interface to evaluate the complementary error function.
 
array log (const array &in)
 C++ Interface to evaluate the natural logarithm.
 
array log1p (const array &in)
 C++ Interface to evaluate the natural logarithm of 1 + input, ln(1+in).
 
array log10 (const array &in)
 C++ Interface to evaluate the base 10 logarithm.
 
array log2 (const array &in)
 C++ Interface to evaluate the base 2 logarithm.
 
array sqrt (const array &in)
 C++ Interface to evaluate the square root.
 
array rsqrt (const array &in)
 C++ Interface to evaluate the reciprocal square root.
 
array cbrt (const array &in)
 C++ Interface to evaluate the cube root.
 
array factorial (const array &in)
 C++ Interface to calculate the factorial.
 
array tgamma (const array &in)
 C++ Interface to evaluate the gamma function.
 
array lgamma (const array &in)
 C++ Interface to evaluate the logarithm of the absolute value of the gamma function.
 
array iszero (const array &in)
 C++ Interface to check which values are zero.
 
array isInf (const array &in)
 C++ Interface to check if values are infinite.
 
array isNaN (const array &in)
 C++ Interface to check if values are NaN.
 
void setBackend (const Backend bknd)
 
unsigned getBackendCount ()
 
int getAvailableBackends ()
 Returns a flag of all available backends.
 
af::Backend getBackendId (const array &in)
 
af::Backend getActiveBackend ()
 
int getDeviceId (const array &in)
 
array matmul (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE)
 C++ Interface to multiply two matrices.
 
array matmulNT (const array &lhs, const array &rhs)
 C++ Interface to multiply two matrices.
 
array matmulTN (const array &lhs, const array &rhs)
 C++ Interface to multiply two matrices.
 
array matmulTT (const array &lhs, const array &rhs)
 C++ Interface to multiply two matrices.
 
array matmul (const array &a, const array &b, const array &c)
 C++ Interface to chain multiply three matrices.
 
array matmul (const array &a, const array &b, const array &c, const array &d)
 C++ Interface to chain multiply three matrices.
 
template<typename T >
dot (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE)
 C++ Interface to compute the dot product.
 
array dot (const array &lhs, const array &rhs, const matProp optLhs=AF_MAT_NONE, const matProp optRhs=AF_MAT_NONE)
 
array transpose (const array &in, const bool conjugate=false)
 C++ Interface to transpose a matrix.
 
void transposeInPlace (array &in, const bool conjugate=false)
 C++ Interface to transpose a matrix in-place.
 
int devicecount ()
 Gets the number of devices.
 
int deviceget ()
 Gets the current device ID.
 
void deviceset (const int device)
 Sets the current device.
 
array loadimage (const char *filename, const bool is_color=false)
 C++ Interface for loading an image.
 
void saveimage (const char *filename, const array &in)
 C++ Interface for saving an image.
 
array gaussiankernel (const int rows, const int cols, const double sig_r=0, const double sig_c=0)
 Creates a Gaussian Kernel
 
template<typename T >
alltrue (const array &in)
 C++ Interface to check if all values along the first non-singleton dimension are true.
 
template<typename T >
anytrue (const array &in)
 C++ Interface to check if all values along the first non-singleton dimension are true.
 
array alltrue (const array &in, const int dim=-1)
 C++ Interface to check if all values along a given dimension are true.
 
array anytrue (const array &in, const int dim=-1)
 C++ Interface to check if any values along a given dimension are true.
 
array setunique (const array &in, const bool is_sorted=false)
 C++ Interface to return the unique values in an array.
 
array setunion (const array &first, const array &second, const bool is_unique=false)
 C++ Interface to evaluate the union of two arrays.
 
array setintersect (const array &first, const array &second, const bool is_unique=false)
 C++ Interface to evaluate the intersection of two arrays.
 
array histequal (const array &in, const array &hist)
 C++ Interface for histogram equalization.
 
array colorspace (const array &image, const CSpace to, const CSpace from)
 C++ Interface wrapper for colorspace conversion.
 
array filter (const array &image, const array &kernel)
 Image Filtering.
 
array mul (const array &in, const int dim=-1)
 C++ Interface to multiply array elements over a given dimension.
 
template<typename T >
mul (const array &in)
 C++ Interface to multiply array elements over the first non-singleton dimension.
 
void deviceprop (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 Gets the information about device and platform as strings
 
float real (af_cfloat val)
 
double real (af_cdouble val)
 
float imag (af_cfloat val)
 
double imag (af_cdouble val)
 
af::cfloat operator+ (const af::cfloat &lhs, const af::cfloat &rhs)
 
af::cdouble operator+ (const af::cdouble &lhs, const af::cdouble &rhs)
 
af::cfloat operator- (const af::cfloat &lhs, const af::cfloat &rhs)
 
af::cdouble operator- (const af::cdouble &lhs, const af::cdouble &rhs)
 
af::cfloat operator* (const af::cfloat &lhs, const af::cfloat &rhs)
 
af::cdouble operator* (const af::cdouble &lhs, const af::cdouble &rhs)
 
af::cfloat operator/ (const af::cfloat &lhs, const af::cfloat &rhs)
 
af::cdouble operator/ (const af::cdouble &lhs, const af::cdouble &rhs)
 
af::cfloat operator+ (const af::cfloat &lhs, const double &rhs)
 
af::cdouble operator+ (const af::cdouble &lhs, const double &rhs)
 
af::cfloat operator/ (const af::cfloat &lhs, const double &rhs)
 
af::cdouble operator/ (const af::cdouble &lhs, const double &rhs)
 
af::cfloat operator- (const af::cfloat &lhs, const double &rhs)
 
af::cdouble operator- (const af::cdouble &lhs, const double &rhs)
 
af::cfloat operator* (const af::cfloat &lhs, const double &rhs)
 
af::cdouble operator* (const af::cdouble &lhs, const double &rhs)
 
af::cfloat operator+ (const double &rhs, const af::cfloat &lhs)
 
af::cdouble operator+ (const double &rhs, const af::cdouble &lhs)
 
af::cdouble operator+ (const af::cfloat &lhs, const af::cdouble &rhs)
 
af::cdouble operator+ (const af::cdouble &lhs, const af::cfloat &rhs)
 
af::cfloat operator- (const double &rhs, const af::cfloat &lhs)
 
af::cdouble operator- (const double &rhs, const af::cdouble &lhs)
 
af::cdouble operator- (const af::cfloat &lhs, const af::cdouble &rhs)
 
af::cdouble operator- (const af::cdouble &lhs, const af::cfloat &rhs)
 
af::cfloat operator* (const double &rhs, const af::cfloat &lhs)
 
af::cdouble operator* (const double &rhs, const af::cdouble &lhs)
 
af::cdouble operator* (const af::cfloat &lhs, const af::cdouble &rhs)
 
af::cdouble operator* (const af::cdouble &lhs, const af::cfloat &rhs)
 
af::cfloat operator/ (const double &rhs, const af::cfloat &lhs)
 
af::cdouble operator/ (const double &rhs, const af::cdouble &lhs)
 
af::cdouble operator/ (const af::cfloat &lhs, const af::cdouble &rhs)
 
af::cdouble operator/ (const af::cdouble &lhs, const af::cfloat &rhs)
 
bool operator== (const cfloat &lhs, const cfloat &rhs)
 
bool operator== (const cdouble &lhs, const cdouble &rhs)
 
bool operator!= (const cfloat &lhs, const cfloat &rhs)
 
bool operator!= (const cdouble &lhs, const cdouble &rhs)
 
std::istream & operator>> (std::istream &is, cfloat &in)
 
std::istream & operator>> (std::istream &is, cdouble &in)
 
std::ostream & operator<< (std::ostream &os, const cfloat &in)
 
std::ostream & operator<< (std::ostream &os, const cdouble &in)
 
float abs (const cfloat &val)
 
double abs (const cdouble &val)
 
cfloat conj (const cfloat &val)
 
cdouble conj (const cdouble &val)
 
template<typename T >
array constant (T val, const dim4 &dims, const dtype ty=(af_dtype) dtype_traits< T >::ctype)
 C++ Interface to generate an array with elements set to a specified value.
 
template<typename T >
array constant (T val, const dim_t d0, const af_dtype ty=(af_dtype) dtype_traits< T >::ctype)
 C++ Interface to generate a 1-D array with elements set to a specified value.
 
template<typename T >
array constant (T val, const dim_t d0, const dim_t d1, const af_dtype ty=(af_dtype) dtype_traits< T >::ctype)
 C++ Interface to generate a 2-D array with elements set to a specified value.
 
template<typename T >
array constant (T val, const dim_t d0, const dim_t d1, const dim_t d2, const af_dtype ty=(af_dtype) dtype_traits< T >::ctype)
 C++ Interface to generate a 3-D array with elements set to a specified value.
 
template<typename T >
array constant (T val, const dim_t d0, const dim_t d1, const dim_t d2, const dim_t d3, const af_dtype ty=(af_dtype) dtype_traits< T >::ctype)
 C++ Interface to generate a 4-D array with elements set to a specified value.
 
array identity (const dim4 &dims, const dtype ty=f32)
 C++ Interface to generate an identity array.
 
array identity (const dim_t d0, const dtype ty=f32)
 C++ Interface to generate a 1-D identity array.
 
array identity (const dim_t d0, const dim_t d1, const dtype ty=f32)
 C++ Interface to generate a 2-D identity array.
 
array identity (const dim_t d0, const dim_t d1, const dim_t d2, const dtype ty=f32)
 C++ Interface to generate a 3-D identity array.
 
array identity (const dim_t d0, const dim_t d1, const dim_t d2, const dim_t d3, const dtype ty=f32)
 C++ Interface to generate a 4-D identity array.
 
array range (const dim4 &dims, const int seq_dim=-1, const dtype ty=f32)
 C++ Interface to generate an array with [0, n-1] values along the seq_dim dimension and tiled across other dimensions of shape dim4.
 
array range (const dim_t d0, const dim_t d1=1, const dim_t d2=1, const dim_t d3=1, const int seq_dim=-1, const dtype ty=f32)
 C++ Interface to generate an array with [0, n-1] values along the seq_dim dimension and tiled across other dimensions described by dimension parameters.
 
array iota (const dim4 &dims, const dim4 &tile_dims=dim4(1), const dtype ty=f32)
 C++ Interface to generate an array with [0, n-1] values modified to specified dimensions and tiling.
 
array diag (const array &in, const int num=0, const bool extract=true)
 C++ Interface to extract the diagonal from an array.
 
array join (const int dim, const array &first, const array &second)
 C++ Interface to join 2 arrays along a dimension.
 
array join (const int dim, const array &first, const array &second, const array &third)
 C++ Interface to join 3 arrays along a dimension.
 
array join (const int dim, const array &first, const array &second, const array &third, const array &fourth)
 C++ Interface to join 4 arrays along a dimension.
 
array tile (const array &in, const unsigned x, const unsigned y=1, const unsigned z=1, const unsigned w=1)
 C++ Interface to generate a tiled array.
 
array tile (const array &in, const dim4 &dims)
 C++ Interface to generate a tiled array.
 
array reorder (const array &in, const unsigned x, const unsigned y=1, const unsigned z=2, const unsigned w=3)
 C++ Interface to reorder an array.
 
array shift (const array &in, const int x, const int y=0, const int z=0, const int w=0)
 C++ Interface to shift an array.
 
array moddims (const array &in, const dim4 &dims)
 C++ Interface to modify the dimensions of an input array to a specified shape.
 
array moddims (const array &in, const dim_t d0, const dim_t d1=1, const dim_t d2=1, const dim_t d3=1)
 C++ Interface to modify the dimensions of an input array to a specified shape.
 
array moddims (const array &in, const unsigned ndims, const dim_t *const dims)
 C++ Interface to modify the dimensions of an input array to a specified shape.
 
array flat (const array &in)
 C++ Interface to flatten an array.
 
array flip (const array &in, const unsigned dim)
 C++ Interface to flip an array.
 
array lower (const array &in, bool is_unit_diag=false)
 C++ Interface to return the lower triangle array.
 
array upper (const array &in, bool is_unit_diag=false)
 C++ Interface to return the upper triangle array.
 
array select (const array &cond, const array &a, const array &b)
 C++ Interface to select elements based on a conditional array.
 
array select (const array &cond, const array &a, const double &b)
 C++ Interface to select elements based on a conditional array.
 
array select (const array &cond, const double &a, const array &b)
 C++ Interface to select elements based on a conditional array.
 
void replace (array &a, const array &cond, const array &b)
 C++ Interface to replace elements of an array with elements of another array.
 
void replace (array &a, const array &cond, const double &b)
 C++ Interface to replace elements of an array with a scalar value.
 
array pad (const array &in, const dim4 &beginPadding, const dim4 &endPadding, const borderType padFillType)
 C++ Interface to pad an array.
 
void replace (array &a, const array &cond, const long long b)
 C++ Interface to replace elements of an array with a scalar value.
 
void replace (array &a, const array &cond, const unsigned long long b)
 C++ Interface to replace elements of an array with a scalar value.
 
array select (const array &cond, const array &a, const long long b)
 C++ Interface to select elements based on a conditional array.
 
array select (const array &cond, const array &a, const unsigned long long b)
 C++ Interface to select elements based on a conditional array.
 
array select (const array &cond, const long long a, const array &b)
 C++ Interface to select elements based on a conditional array.
 
array select (const array &cond, const unsigned long long a, const array &b)
 C++ Interface to select elements based on a conditional array.
 
void info ()
 
const char * infoString (const bool verbose=false)
 
void deviceInfo (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 Gets the information about device and platform as strings
 
int getDeviceCount ()
 Gets the number of devices.
 
int getDevice ()
 Gets the current device ID.
 
bool isDoubleAvailable (const int device)
 Queries the current device for double precision floating point support.
 
bool isHalfAvailable (const int device)
 Queries the current device for half precision floating point support.
 
void setDevice (const int device)
 Sets the current device.
 
void sync (const int device=-1)
 Blocks until the device is finished processing.
 
void free (const void *ptr)
 Returns memory to ArrayFire's memory manager.
 
void freeV2 (const void *ptr)
 Returns memory to ArrayFire's memory manager.
 
void freePinned (const void *ptr)
 Free pinned memory allocated by ArrayFire's memory manager
 
void * allocHost (const size_t elements, const dtype type)
 Allocate memory on host.
 
template<typename T >
T * allocHost (const size_t elements)
 Allocate memory on host.
 
void freeHost (const void *ptr)
 Free memory allocated internally by ArrayFire.
 
void setMemStepSize (const size_t size)
 Set the resolution of memory chunks.
 
size_t getMemStepSize ()
 Get the resolution of memory chunks.
 
dim4 operator+ (const dim4 &first, const dim4 &second)
 Performs an element-wise addition of two dim4 objects.
 
dim4 operator- (const dim4 &first, const dim4 &second)
 Performs an element-wise subtraction of two dim4 objects.
 
dim4 operator* (const dim4 &first, const dim4 &second)
 Performs an element-wise multiplication of two dim4 objects.
 
static std::ostream & operator<< (std::ostream &ostr, const dim4 &dims)
 Prints the elements of the dim4 array separated by spaces.
 
static std::istream & operator>> (std::istream &istr, dim4 &dims)
 Reads 4 dim_t values from an input stream and stores the results in a dim4.
 
bool isSpan (const af_seq &seq)
 Returns true if the af_seq object represents the entire range of an axis.
 
size_t seqElements (const af_seq &seq)
 Returns the number of elements that the af_seq object represents.
 
dim_t calcDim (const af_seq &seq, const dim_t &parentDim)
 Returns the number of elements that will be represented by seq if applied on an array.
 
bool gforToggle ()
 
bool gforGet ()
 
void gforSet (bool val)
 
array batchFunc (const array &lhs, const array &rhs, batchFunc_t func)
 
void grad (array &dx, array &dy, const array &in)
 C++ Interface for calculating the gradients.
 
array loadImage (const char *filename, const bool is_color=false)
 C++ Interface for loading an image.
 
void saveImage (const char *filename, const array &in)
 C++ Interface for saving an image.
 
array loadImageMem (const void *ptr)
 C++ Interface for loading an image from memory.
 
void * saveImageMem (const array &in, const imageFormat format=AF_FIF_PNG)
 C++ Interface for saving an image to memory.
 
void deleteImageMem (void *ptr)
 C++ Interface for deleting memory created by saveImageMem or af_save_image_memory.
 
array loadImageNative (const char *filename)
 C++ Interface for loading an image as its original type.
 
void saveImageNative (const char *filename, const array &in)
 C++ Interface for saving an image without modifications.
 
bool isImageIOAvailable ()
 Function to check if Image IO is available.
 
array resize (const array &in, const dim_t odim0, const dim_t odim1, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for resizing an image to specified dimensions.
 
array resize (const float scale0, const float scale1, const array &in, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for resizing an image to specified scales.
 
array resize (const float scale, const array &in, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for resizing an image to specified scale.
 
array rotate (const array &in, const float theta, const bool crop=true, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for rotating an image.
 
array transform (const array &in, const array &transform, const dim_t odim0=0, const dim_t odim1=0, const interpType method=AF_INTERP_NEAREST, const bool inverse=true)
 C++ Interface for transforming an image.
 
array transformCoordinates (const array &tf, const float d0, const float d1)
 C++ Interface for transforming coordinates.
 
array translate (const array &in, const float trans0, const float trans1, const dim_t odim0=0, const dim_t odim1=0, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for translating an image.
 
array scale (const array &in, const float scale0, const float scale1, const dim_t odim0=0, const dim_t odim1=0, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for scaling an image.
 
array skew (const array &in, const float skew0, const float skew1, const dim_t odim0=0, const dim_t odim1=0, const bool inverse=true, const interpType method=AF_INTERP_NEAREST)
 C++ Interface for skewing an image.
 
array bilateral (const array &in, const float spatial_sigma, const float chromatic_sigma, const bool is_color=false)
 C++ Interface for bilateral filter.
 
array histogram (const array &in, const unsigned nbins, const double minval, const double maxval)
 C++ Interface for histogram.
 
array histogram (const array &in, const unsigned nbins)
 C++ Interface for histogram.
 
array meanShift (const array &in, const float spatial_sigma, const float chromatic_sigma, const unsigned iter, const bool is_color=false)
 C++ Interface for mean shift.
 
array minfilt (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
 C++ Interface for minimum filter.
 
array maxfilt (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
 C++ Interface for maximum filter.
 
array dilate (const array &in, const array &mask)
 C++ Interface for image dilation (max filter)
 
array dilate3 (const array &in, const array &mask)
 C++ Interface for 3D image dilation.
 
array erode (const array &in, const array &mask)
 C++ Interface for image erosion (min filter)
 
array erode3 (const array &in, const array &mask)
 C++ Interface for 3d for image erosion.
 
array regions (const array &in, const af::connectivity connectivity=AF_CONNECTIVITY_4, const dtype type=f32)
 C++ Interface for getting regions in an image.
 
void sobel (array &dx, array &dy, const array &img, const unsigned ker_size=3)
 C++ Interface for extracting sobel gradients.
 
array sobel (const array &img, const unsigned ker_size=3, const bool isFast=false)
 C++ Interface for sobel filtering.
 
array rgb2gray (const array &in, const float rPercent=0.2126f, const float gPercent=0.7152f, const float bPercent=0.0722f)
 C++ Interface for RGB to gray conversion.
 
array gray2rgb (const array &in, const float rFactor=1.0, const float gFactor=1.0, const float bFactor=1.0)
 C++ Interface for gray to RGB conversion.
 
array histEqual (const array &in, const array &hist)
 C++ Interface for histogram equalization.
 
array gaussianKernel (const int rows, const int cols, const double sig_r=0, const double sig_c=0)
 C++ Interface for generating gausian kernels.
 
array hsv2rgb (const array &in)
 C++ Interface for converting HSV to RGB.
 
array rgb2hsv (const array &in)
 C++ Interface for converting RGB to HSV.
 
array colorSpace (const array &image, const CSpace to, const CSpace from)
 C++ Interface wrapper for colorspace conversion.
 
array unwrap (const array &in, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px=0, const dim_t py=0, const bool is_column=true)
 C++ Interface for rearranging windowed sections of an input into columns (or rows)
 
array wrap (const array &in, const dim_t ox, const dim_t oy, const dim_t wx, const dim_t wy, const dim_t sx, const dim_t sy, const dim_t px=0, const dim_t py=0, const bool is_column=true)
 C++ Interface for performing the opposite of unwrap.
 
array sat (const array &in)
 C++ Interface wrapper for summed area tables.
 
array ycbcr2rgb (const array &in, const YCCStd standard=AF_YCC_601)
 C++ Interface for converting YCbCr to RGB.
 
array rgb2ycbcr (const array &in, const YCCStd standard=AF_YCC_601)
 C++ Interface for converting RGB to YCbCr.
 
void moments (double *out, const array &in, const momentType moment=AF_MOMENT_FIRST_ORDER)
 C++ Interface for calculating an image moment.
 
array moments (const array &in, const momentType moment=AF_MOMENT_FIRST_ORDER)
 C++ Interface for calculating image moments.
 
array canny (const array &in, const cannyThreshold thresholdType, const float lowThresholdRatio, const float highThresholdRatio, const unsigned sobelWindow=3, const bool isFast=false)
 C++ Interface for canny edge detector.
 
array anisotropicDiffusion (const af::array &in, const float timestep, const float conductance, const unsigned iterations, const fluxFunction fftype=AF_FLUX_EXPONENTIAL, const diffusionEq diffusionKind=AF_DIFFUSION_GRAD)
 C++ Interface for gradient anisotropic(non-linear diffusion) smoothing.
 
array iterativeDeconv (const array &in, const array &ker, const unsigned iterations, const float relaxFactor, const iterativeDeconvAlgo algo)
 C++ Interface for Iterative deconvolution algorithm.
 
array inverseDeconv (const array &in, const array &psf, const float gamma, const inverseDeconvAlgo algo)
 C++ Interface for Tikhonov deconvolution algorithm.
 
array confidenceCC (const array &in, const array &seeds, const unsigned radius, const unsigned multiplier, const int iter, const double segmentedValue)
 C++ Interface for confidence connected components.
 
array confidenceCC (const array &in, const array &seedx, const array &seedy, const unsigned radius, const unsigned multiplier, const int iter, const double segmentedValue)
 C++ Interface for confidence connected components.
 
array confidenceCC (const array &in, const size_t num_seeds, const unsigned *seedx, const unsigned *seedy, const unsigned radius, const unsigned multiplier, const int iter, const double segmentedValue)
 C++ Interface for confidence connected components.
 
array lookup (const array &in, const array &idx, const int dim=-1)
 Lookup the values of an input array by indexing with another array.
 
void copy (array &dst, const array &src, const index &idx0, const index &idx1=span, const index &idx2=span, const index &idx3=span)
 Copy the values of an input array based on index.
 
array createStridedArray (const void *data, const dim_t offset, const dim4 dims, const dim4 strides, const af::dtype ty, const af::source location)
 
dim4 getStrides (const array &in)
 
dim_t getOffset (const array &in)
 
void * getRawPtr (const array &in)
 
bool isLinear (const array &in)
 
bool isOwner (const array &in)
 
AFAPI void svd (array &u, array &s, array &vt, const array &in)
 C++ Interface to perform singular value decomposition.
 
AFAPI void svdInPlace (array &u, array &s, array &vt, array &in)
 C++ Interface to perform in-place singular value decomposition.
 
AFAPI void lu (array &out, array &pivot, const array &in, const bool is_lapack_piv=true)
 C++ Interface to perform LU decomposition in packed format.
 
AFAPI void lu (array &lower, array &upper, array &pivot, const array &in)
 C++ Interface to perform LU decomposition.
 
AFAPI void luInPlace (array &pivot, array &in, const bool is_lapack_piv=true)
 C++ Interface to perform in-place LU decomposition.
 
AFAPI void qr (array &out, array &tau, const array &in)
 C++ Interface to perform QR decomposition in packed format.
 
AFAPI void qr (array &q, array &r, array &tau, const array &in)
 C++ Interface to perform QR decomposition.
 
AFAPI void qrInPlace (array &tau, array &in)
 C++ Interface to perform QR decomposition.
 
AFAPI int cholesky (array &out, const array &in, const bool is_upper=true)
 C++ Interface to perform Cholesky decomposition.
 
AFAPI int choleskyInPlace (array &in, const bool is_upper=true)
 C++ Interface to perform in-place Cholesky decomposition.
 
AFAPI array solve (const array &a, const array &b, const matProp options=AF_MAT_NONE)
 C++ Interface to solve a system of equations.
 
AFAPI array solveLU (const array &a, const array &piv, const array &b, const matProp options=AF_MAT_NONE)
 C++ Interface to solve a system of equations.
 
AFAPI array inverse (const array &in, const matProp options=AF_MAT_NONE)
 C++ Interface to invert a matrix.
 
AFAPI array pinverse (const array &in, const double tol=1E-6, const matProp options=AF_MAT_NONE)
 C++ Interface to pseudo-invert (Moore-Penrose) a matrix.
 
AFAPI unsigned rank (const array &in, const double tol=1E-5)
 C++ Interface to find the rank of a matrix.
 
template<typename T >
det (const array &in)
 C++ Interface to find the determinant of a matrix.
 
AFAPI double norm (const array &in, const normType type=AF_NORM_EUCLID, const double p=1, const double q=1)
 C++ Interface to find the norm of a matrix.
 
AFAPI bool isLAPACKAvailable ()
 Returns true if ArrayFire is compiled with LAPACK support.
 
array convolve2GradientNN (const array &incoming_gradient, const array &original_signal, const array &original_filter, const array &convolved_output, const dim4 stride, const dim4 padding, const dim4 dilation, convGradientType grad_type)
 C++ interface for calculating backward pass gradient of 2D convolution This function calculates the gradient with respect to the output of the convolve2NN function that uses the machine learning formulation for the dimensions of the signals and filters.
 
array randu (const dim4 &dims, const dtype ty, randomEngine &r)
 C++ Interface to create an array of random numbers uniformly distributed.
 
array randn (const dim4 &dims, const dtype ty, randomEngine &r)
 C++ Interface to create an array of random numbers normally distributed.
 
array randu (const dim4 &dims, const dtype ty=f32)
 C++ Interface to create an array of random numbers uniformly distributed.
 
array randu (const dim_t d0, const dtype ty=f32)
 C++ Interface to create an array of random numbers uniformly distributed.
 
array randu (const dim_t d0, const dim_t d1, const dtype ty=f32)
 C++ Interface to create an array of random numbers uniformly distributed.
 
array randu (const dim_t d0, const dim_t d1, const dim_t d2, const dtype ty=f32)
 C++ Interface to create an array of random numbers uniformly distributed.
 
array randu (const dim_t d0, const dim_t d1, const dim_t d2, const dim_t d3, const dtype ty=f32)
 C++ Interface to create an array of random numbers uniformly distributed.
 
array randn (const dim4 &dims, const dtype ty=f32)
 C++ Interface to create an array of random numbers normally distributed.
 
array randn (const dim_t d0, const dtype ty=f32)
 C++ Interface to create an array of random numbers normally distributed.
 
array randn (const dim_t d0, const dim_t d1, const dtype ty=f32)
 C++ Interface to create an array of random numbers normally distributed.
 
array randn (const dim_t d0, const dim_t d1, const dim_t d2, const dtype ty=f32)
 C++ Interface to create an array of random numbers normally distributed.
 
array randn (const dim_t d0, const dim_t d1, const dim_t d2, const dim_t d3, const dtype ty=f32)
 C++ Interface to create an array of random numbers normally distributed.
 
void setDefaultRandomEngineType (randomEngineType rtype)
 C++ Interface to set the default random engine type.
 
randomEngine getDefaultRandomEngine (void)
 C++ Interface to get the default random engine type.
 
void setSeed (const unsigned long long seed)
 C++ Interface to set the seed of the default random number generator.
 
unsigned long long getSeed ()
 C++ Interface to get the seed of the default random number generator.
 
array approx1 (const array &in, const array &pos, const interpType method=AF_INTERP_LINEAR, const float off_grid=0.0f)
 C++ Interface for data interpolation on one-dimensional signals.
 
array approx2 (const array &in, const array &pos0, const array &pos1, const interpType method=AF_INTERP_LINEAR, const float off_grid=0.0f)
 C++ Interface for data interpolation on two-dimensional signals.
 
array approx1 (const array &in, const array &pos, const int interp_dim, const double idx_start, const double idx_step, const interpType method=AF_INTERP_LINEAR, const float off_grid=0.0f)
 C++ Interface for data interpolation on one-dimensional signals.
 
array approx2 (const array &in, const array &pos0, const int interp_dim0, const double idx_start_dim0, const double idx_step_dim0, const array &pos1, const int interp_dim1, const double idx_start_dim1, const double idx_step_dim1, const interpType method=AF_INTERP_LINEAR, const float off_grid=0.0f)
 C++ Interface for data interpolation on two-dimensional signals.
 
array fftNorm (const array &in, const double norm_factor, const dim_t odim0=0)
 C++ Interface for fast fourier transform on one dimensional signals.
 
array fft2Norm (const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0)
 C++ Interface for fast fourier transform on two dimensional signals.
 
array fft3Norm (const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
 C++ Interface for fast fourier transform on three dimensional signals.
 
void fftInPlace (array &in, const double norm_factor=1.0)
 C++ Interface for fast fourier transform on one dimensional signals.
 
void fft2InPlace (array &in, const double norm_factor=1.0)
 C++ Interface for fast fourier transform on two dimensional signals.
 
void fft3InPlace (array &in, const double norm_factor=1.0)
 C++ Interface for fast fourier transform on three dimensional signals.
 
array fft (const array &in, const dim_t odim0=0)
 C++ Interface for fast fourier transform on one dimensional signals.
 
array fft2 (const array &in, const dim_t odim0=0, const dim_t odim1=0)
 C++ Interface for fast fourier transform on two dimensional signals.
 
array fft3 (const array &in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
 C++ Interface for fast fourier transform on three dimensional signals.
 
array dft (const array &in, const double norm_factor, const dim4 outDims)
 C++ Interface for fast fourier transform on any(1d, 2d, 3d) dimensional signals.
 
array dft (const array &in, const dim4 outDims)
 C++ Interface for fast fourier transform on any(1d, 2d, 3d) dimensional signals.
 
array dft (const array &in)
 C++ Interface for fast fourier transform on any(1d, 2d, 3d) dimensional signals.
 
array ifftNorm (const array &in, const double norm_factor, const dim_t odim0=0)
 C++ Interface for inverse fast fourier transform on one dimensional signals.
 
array ifft2Norm (const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0)
 C++ Interface for inverse fast fourier transform on two dimensional signals.
 
array ifft3Norm (const array &in, const double norm_factor, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
 C++ Interface for inverse fast fourier transform on three dimensional signals.
 
void ifftInPlace (array &in, const double norm_factor=1.0)
 C++ Interface for fast fourier transform on one dimensional signals.
 
void ifft2InPlace (array &in, const double norm_factor=1.0)
 C++ Interface for fast fourier transform on two dimensional signals.
 
void ifft3InPlace (array &in, const double norm_factor=1.0)
 C++ Interface for fast fourier transform on three dimensional signals.
 
array ifft (const array &in, const dim_t odim0=0)
 C++ Interface for inverse fast fourier transform on one dimensional signals.
 
array ifft2 (const array &in, const dim_t odim0=0, const dim_t odim1=0)
 C++ Interface for inverse fast fourier transform on two dimensional signals.
 
array ifft3 (const array &in, const dim_t odim0=0, const dim_t odim1=0, const dim_t odim2=0)
 C++ Interface for inverse fast fourier transform on three dimensional signals.
 
array idft (const array &in, const double norm_factor, const dim4 outDims)
 C++ Interface for inverse fast fourier transform on any(1d, 2d, 3d) dimensional signals.
 
array idft (const array &in, const dim4 outDims)
 C++ Interface for inverse fast fourier transform on any(1d, 2d, 3d) dimensional signals.
 
array idft (const array &in)
 C++ Interface for inverse fast fourier transform on any(1d, 2d, 3d) dimensional signals.
 
template<int rank>
array fftR2C (const array &in, const dim4 &dims, const double norm_factor=1.0)
 C++ Interface for real to complex fast fourier transform for one dimensional signals.
 
template<int rank>
array fftR2C (const array &in, const double norm_factor=1.0)
 C++ Interface for real to complex fast fourier transform for one dimensional signals.
 
template<int rank>
array fftC2R (const array &in, bool is_odd=false, const double norm_factor=1.0)
 C++ Interface for complex to real fast fourier transform.
 
array convolve (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
 C++ Interface for convolution any(one through three) dimensional signals.
 
array convolve (const array &col_filter, const array &row_filter, const array &signal, const convMode mode=AF_CONV_DEFAULT)
 C++ Interface for separable convolution on two dimensional signals.
 
array convolve1 (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
 C++ Interface for convolution on one dimensional signals.
 
array convolve2 (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
 C++ Interface for convolution on two dimensional signals.
 
array convolve2NN (const array &signal, const array &filter, const dim4 stride, const dim4 padding, const dim4 dilation)
 C++ Interface for 2D convolution.
 
array convolve3 (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT, const convDomain domain=AF_CONV_AUTO)
 C++ Interface for convolution on three dimensional signals.
 
array fftConvolve (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
 C++ Interface for FFT-based convolution any(one through three) dimensional signals.
 
array fftConvolve1 (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
 C++ Interface for convolution on 1D signals using FFT.
 
array fftConvolve2 (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
 C++ Interface for convolution on 2D signals using FFT.
 
array fftConvolve3 (const array &signal, const array &filter, const convMode mode=AF_CONV_DEFAULT)
 C++ Interface for convolution on 3D signals using FFT.
 
array fir (const array &b, const array &x)
 C++ Interface for finite impulse response filter.
 
array iir (const array &b, const array &a, const array &x)
 C++ Interface for infinite impulse response filter.
 
array medfilt (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
 C++ Interface for median filter.
 
array medfilt1 (const array &in, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
 C++ Interface for median filter.
 
array medfilt2 (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO)
 C++ Interface for median filter.
 
void setFFTPlanCacheSize (size_t cacheSize)
 C++ Interface for setting plan cache size.
 
array sparse (const dim_t nRows, const dim_t nCols, const array values, const array rowIdx, const array colIdx, const af::storage stype=AF_STORAGE_CSR)
 This function converts af::array of values, row indices and column indices into a sparse array.
 
array sparse (const dim_t nRows, const dim_t nCols, const dim_t nNZ, const void *const values, const int *const rowIdx, const int *const colIdx, const dtype type=f32, const af::storage stype=AF_STORAGE_CSR, const af::source src=afHost)
 This function converts host or device arrays of values, row indices and column indices into a sparse array on the device.
 
array sparse (const array dense, const af::storage stype=AF_STORAGE_CSR)
 This function converts a dense af::array into a sparse array.
 
array sparseConvertTo (const array in, const af::storage destStrorage)
 
array dense (const array sparse)
 
void sparseGetInfo (array &values, array &rowIdx, array &colIdx, af::storage &stype, const array in)
 
array sparseGetValues (const array in)
 
array sparseGetRowIdx (const array in)
 
array sparseGetColIdx (const array in)
 
dim_t sparseGetNNZ (const array in)
 
af::storage sparseGetStorage (const array in)
 
array mean (const array &in, const dim_t dim=-1)
 C++ Interface for mean.
 
array mean (const array &in, const array &weights, const dim_t dim=-1)
 C++ Interface for mean of weighted inputs.
 
array var (const array &in, const bool isbiased=false, const dim_t dim=-1)
 C++ Interface for variance.
 
array var (const array &in, const af_var_bias bias, const dim_t dim=-1)
 C++ Interface for variance.
 
array var (const array &in, const array &weights, const dim_t dim=-1)
 C++ Interface for variance of weighted inputs.
 
void meanvar (array &mean, array &var, const array &in, const array &weights, const af_var_bias bias=AF_VARIANCE_POPULATION, const dim_t dim=-1)
 C++ Interface for mean and variance.
 
array stdev (const array &in, const dim_t dim=-1)
 C++ Interface for standard deviation.
 
array stdev (const array &in, const af_var_bias bias, const dim_t dim=-1)
 C++ Interface for standard deviation.
 
array cov (const array &X, const array &Y, const bool isbiased=false)
 C++ Interface for covariance.
 
array cov (const array &X, const array &Y, const af_var_bias bias)
 C++ Interface for covariance.
 
array median (const array &in, const dim_t dim=-1)
 C++ Interface for median.
 
template<typename T >
mean (const array &in)
 C++ Interface for mean of all elements.
 
template<typename T >
mean (const array &in, const array &weights)
 C++ Interface for mean of all elements in weighted input.
 
template<typename T >
var (const array &in, const bool isbiased=false)
 C++ Interface for variance of all elements.
 
template<typename T >
var (const array &in, const af_var_bias bias)
 C++ Interface for variance of all elements.
 
template<typename T >
var (const array &in, const array &weights)
 C++ Interface for variance of all elements in weighted input.
 
template<typename T >
stdev (const array &in)
 C++ Interface for standard deviation of all elements.
 
template<typename T >
stdev (const array &in, const af_var_bias bias)
 C++ Interface for standard deviation of all elements.
 
template<typename T >
median (const array &in)
 C++ Interface for median of all elements.
 
template<typename T >
corrcoef (const array &X, const array &Y)
 C++ Interface for correlation coefficient.
 
void topk (array &values, array &indices, const array &in, const int k, const int dim=-1, const topkFunction order=AF_TOPK_MAX)
 C++ Interface for finding top k elements along a given dimension.
 
double timeit (void(*fn)())
 
void print (const char *exp, const array &arr)
 
void print (const char *exp, const array &arr, const int precision)
 
int saveArray (const char *key, const array &arr, const char *filename, const bool append=false)
 
array readArray (const char *filename, const unsigned index)
 
array readArray (const char *filename, const char *key)
 
int readArrayCheck (const char *filename, const char *key)
 When reading by key, it may be a good idea to run this function first to check for the key and then call the readArray using the index.
 
void toString (char **output, const char *exp, const array &arr, const int precision=4, const bool transpose=true)
 
const char * toString (const char *exp, const array &arr, const int precision=4, const bool transpose=true)
 
array exampleFunction (const array &in, const af_someenum_t param)
 
size_t getSizeOf (af::dtype type)
 Get the size of the type represented by an af_dtype enum.
 
features fast (const array &in, const float thr=20.0f, const unsigned arc_length=9, const bool non_max=true, const float feature_ratio=0.05f, const unsigned edge=3)
 C++ Interface for FAST feature detector.
 
features harris (const array &in, const unsigned max_corners=500, const float min_response=1e5f, const float sigma=1.f, const unsigned block_size=0, const float k_thr=0.04f)
 C++ Interface for Harris corner detector.
 
void orb (features &feat, array &desc, const array &image, const float fast_thr=20.f, const unsigned max_feat=400, const float scl_fctr=1.5f, const unsigned levels=4, const bool blur_img=false)
 C++ Interface for ORB feature descriptor.
 
void sift (features &feat, array &desc, const array &in, const unsigned n_layers=3, const float contrast_thr=0.04f, const float edge_thr=10.f, const float init_sigma=1.6f, const bool double_input=true, const float intensity_scale=0.00390625f, const float feature_ratio=0.05f)
 C++ Interface for SIFT feature detector and descriptor.
 
void gloh (features &feat, array &desc, const array &in, const unsigned n_layers=3, const float contrast_thr=0.04f, const float edge_thr=10.f, const float init_sigma=1.6f, const bool double_input=true, const float intensity_scale=0.00390625f, const float feature_ratio=0.05f)
 C++ Interface for SIFT feature detector and GLOH descriptor.
 
void hammingMatcher (array &idx, array &dist, const array &query, const array &train, const dim_t dist_dim=0, const unsigned n_dist=1)
 C++ Interface wrapper for Hamming matcher.
 
void nearestNeighbour (array &idx, array &dist, const array &query, const array &train, const dim_t dist_dim=0, const unsigned n_dist=1, const af_match_type dist_type=AF_SSD)
 C++ interface wrapper for determining the nearest neighbouring points to a given set of points.
 
array matchTemplate (const array &searchImg, const array &templateImg, const matchType mType=AF_SAD)
 C++ Interface for image template matching.
 
features susan (const array &in, const unsigned radius=3, const float diff_thr=32.0f, const float geom_thr=10.0f, const float feature_ratio=0.05f, const unsigned edge=3)
 C++ Interface for SUSAN corner detector.
 
array dog (const array &in, const int radius1, const int radius2)
 C++ Interface wrapper for Difference of Gaussians.
 
void homography (array &H, int &inliers, const array &x_src, const array &y_src, const array &x_dst, const array &y_dst, const af_homography_type htype=AF_HOMOGRAPHY_RANSAC, const float inlier_thr=3.f, const unsigned iterations=1000, const dtype otype=f32)
 C++ Interface for Homography estimation.
 
array clamp (const array &in, const array &lo, const array &hi)
 
array clamp (const array &in, const array &lo, const double hi)
 
array clamp (const array &in, const double lo, const array &hi)
 
array clamp (const array &in, const double lo, const double hi)
 
array rem (const array &lhs, const array &rhs)
 
array rem (const array &lhs, const double rhs)
 
array rem (const double lhs, const array &rhs)
 
array mod (const array &lhs, const array &rhs)
 
array mod (const array &lhs, const double rhs)
 
array mod (const double lhs, const array &rhs)
 
array hypot (const array &lhs, const array &rhs)
 C++ Interface to calculate the length of the hypotenuse of two inputs.
 
array hypot (const array &lhs, const double rhs)
 C++ Interface to calculate the length of the hypotenuse of two inputs.
 
array hypot (const double lhs, const array &rhs)
 C++ Interface to calculate the length of the hypotenuse of two inputs.
 
array atan2 (const array &lhs, const array &rhs)
 C++ Interface to evaluate the inverse tangent of two arrays.
 
array atan2 (const array &lhs, const double rhs)
 C++ Interface to evaluate the inverse tangent of two arrays.
 
array atan2 (const double lhs, const array &rhs)
 C++ Interface to evaluate the inverse tangent of two arrays.
 
array complex (const array &in)
 C++ Interface to create a complex array from a single real array.
 
array complex (const array &real_, const array &imag_)
 C++ Interface to create a complex array from two real arrays.
 
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.
 
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.
 
array pow (const array &base, const array &exponent)
 C++ Interface to raise a base to a power (or exponent).
 
array pow (const array &base, const double exponent)
 C++ Interface to raise a base to a power (or exponent).
 
array pow (const double base, const array &exponent)
 C++ Interface to raise a base to a power (or exponent).
 
array pow2 (const array &in)
 C++ Interface to raise 2 to a power (or exponent).
 
array operator+ (const array &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const bool &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const int &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const unsigned &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const char &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const unsigned char &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const long &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const unsigned long &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const long long &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const unsigned long long &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const double &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const float &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const cfloat &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const cdouble &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const bool &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const int &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const unsigned &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const char &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const unsigned char &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const long &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const unsigned long &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const long long &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const unsigned long long &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const double &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const float &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const cfloat &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const cdouble &rhs)
 
array operator+ (const short &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const unsigned short &lhs, const array &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const short &rhs)
 Adds two arrays or an array and a value.
 
array operator+ (const array &lhs, const unsigned short &rhs)
 
array operator- (const array &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const bool &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const int &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const unsigned &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const char &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const unsigned char &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const long &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const unsigned long &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const long long &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const unsigned long long &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const double &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const float &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const cfloat &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const cdouble &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const bool &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const int &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const unsigned &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const char &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const unsigned char &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const long &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const unsigned long &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const long long &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const unsigned long long &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const double &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const float &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const cfloat &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const cdouble &rhs)
 
array operator- (const short &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const unsigned short &lhs, const array &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const short &rhs)
 Subtracts two arrays or an array and a value.
 
array operator- (const array &lhs, const unsigned short &rhs)
 
array operator* (const array &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const bool &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const int &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const unsigned &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const char &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const unsigned char &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const long &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const unsigned long &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const long long &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const unsigned long long &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const double &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const float &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const cfloat &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const cdouble &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const bool &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const int &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const unsigned &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const char &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const unsigned char &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const long &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const unsigned long &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const long long &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const unsigned long long &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const double &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const float &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const cfloat &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const cdouble &rhs)
 
array operator* (const short &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const unsigned short &lhs, const array &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const short &rhs)
 Multiplies two arrays or an array and a value.
 
array operator* (const array &lhs, const unsigned short &rhs)
 
array operator/ (const array &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const bool &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const int &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const unsigned &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const char &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const unsigned char &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const long &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const unsigned long &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const long long &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const unsigned long long &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const double &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const float &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const cfloat &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const cdouble &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const bool &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const int &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const unsigned &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const char &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const unsigned char &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const long &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const unsigned long &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const long long &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const unsigned long long &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const double &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const float &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const cfloat &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const cdouble &rhs)
 
array operator/ (const short &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const unsigned short &lhs, const array &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const short &rhs)
 Divides two arrays or an array and a value.
 
array operator/ (const array &lhs, const unsigned short &rhs)
 
array operator== (const array &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const bool &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const int &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const unsigned &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const char &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const unsigned char &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const long &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const unsigned long &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const long long &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const unsigned long long &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const double &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const float &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const cfloat &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const cdouble &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const bool &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const int &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const unsigned &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const char &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const unsigned char &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const long &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const unsigned long &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const long long &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const unsigned long long &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const double &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const float &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const cfloat &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const cdouble &rhs)
 
array operator== (const short &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const unsigned short &lhs, const array &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const short &rhs)
 Performs an equality operation on two arrays or an array and a value.
 
array operator== (const array &lhs, const unsigned short &rhs)
 
array operator!= (const array &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const bool &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const int &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const unsigned &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const char &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const unsigned char &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const long &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const unsigned long &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const long long &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const unsigned long long &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const double &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const float &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const cfloat &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const cdouble &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const bool &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const int &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const unsigned &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const char &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const unsigned char &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const long &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const unsigned long &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const long long &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const unsigned long long &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const double &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const float &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const cfloat &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const cdouble &rhs)
 
array operator!= (const short &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const unsigned short &lhs, const array &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const short &rhs)
 Performs an inequality operation on two arrays or an array and a value.
 
array operator!= (const array &lhs, const unsigned short &rhs)
 
array operator< (const array &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const bool &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const int &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const unsigned &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const char &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const unsigned char &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const long &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const unsigned long &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const long long &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const unsigned long long &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const double &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const float &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const cfloat &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const cdouble &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const bool &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const int &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const unsigned &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const char &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const unsigned char &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const long &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const unsigned long &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const long long &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const unsigned long long &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const double &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const float &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const cfloat &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const cdouble &rhs)
 
array operator< (const short &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const unsigned short &lhs, const array &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const short &rhs)
 Performs a lower than operation on two arrays or an array and a value.
 
array operator< (const array &lhs, const unsigned short &rhs)
 
array operator<= (const array &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const bool &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const int &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const unsigned &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const char &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const unsigned char &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const long &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const unsigned long &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const long long &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const unsigned long long &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const double &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const float &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const cfloat &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const cdouble &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const bool &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const int &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const unsigned &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const char &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const unsigned char &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const long &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const unsigned long &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const long long &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const unsigned long long &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const double &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const float &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const cfloat &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const cdouble &rhs)
 
array operator<= (const short &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const unsigned short &lhs, const array &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const short &rhs)
 Performs an lower or equal operation on two arrays or an array and a value.
 
array operator<= (const array &lhs, const unsigned short &rhs)
 
array operator> (const array &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const bool &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const int &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const unsigned &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const char &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const unsigned char &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const long &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const unsigned long &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const long long &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const unsigned long long &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const double &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const float &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const cfloat &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const cdouble &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const bool &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const int &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const unsigned &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const char &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const unsigned char &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const long &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const unsigned long &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const long long &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const unsigned long long &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const double &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const float &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const cfloat &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const cdouble &rhs)
 
array operator> (const short &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const unsigned short &lhs, const array &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const short &rhs)
 Performs an greater than operation on two arrays or an array and a value.
 
array operator> (const array &lhs, const unsigned short &rhs)
 
array operator>= (const array &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const bool &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const int &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const unsigned &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const char &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const unsigned char &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const long &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const unsigned long &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const long long &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const unsigned long long &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const double &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const float &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const cfloat &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const cdouble &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const bool &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const int &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const unsigned &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const char &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const unsigned char &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const long &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const unsigned long &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const long long &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const unsigned long long &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const double &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const float &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const cfloat &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const cdouble &rhs)
 
array operator>= (const short &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const unsigned short &lhs, const array &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const short &rhs)
 Performs an greater or equal operation on two arrays or an array and a value.
 
array operator>= (const array &lhs, const unsigned short &rhs)
 
array operator|| (const array &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const bool &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const int &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const unsigned &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const char &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const unsigned char &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const long &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const unsigned long &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const long long &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const unsigned long long &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const double &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const float &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const cfloat &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const cdouble &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const bool &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const int &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const unsigned &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const char &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const unsigned char &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const long &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const unsigned long &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const long long &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const unsigned long long &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const double &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const float &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const cfloat &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const cdouble &rhs)
 
array operator|| (const short &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const unsigned short &lhs, const array &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const short &rhs)
 Performs an logical OR operation on two arrays or an array and a value.
 
array operator|| (const array &lhs, const unsigned short &rhs)
 
array operator% (const array &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const bool &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const int &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const unsigned &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const char &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const unsigned char &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const long &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const unsigned long &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const long long &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const unsigned long long &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const double &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const float &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const cfloat &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const cdouble &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const bool &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const int &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const unsigned &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const char &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const unsigned char &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const long &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const unsigned long &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const long long &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const unsigned long long &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const double &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const float &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const cfloat &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const cdouble &rhs)
 
array operator% (const short &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const unsigned short &lhs, const array &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const short &rhs)
 Performs an modulo operation on two arrays or an array and a value.
 
array operator% (const array &lhs, const unsigned short &rhs)
 
array operator| (const array &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const bool &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const int &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const unsigned &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const char &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const unsigned char &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const long &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const unsigned long &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const long long &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const unsigned long long &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const double &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const float &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const cfloat &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const cdouble &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const bool &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const int &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const unsigned &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const char &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const unsigned char &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const long &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const unsigned long &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const long long &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const unsigned long long &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const double &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const float &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const cfloat &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const cdouble &rhs)
 
array operator| (const short &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const unsigned short &lhs, const array &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const short &rhs)
 Performs an bitwise OR operation on two arrays or an array and a value.
 
array operator| (const array &lhs, const unsigned short &rhs)
 
array operator^ (const array &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const bool &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const int &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const unsigned &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const char &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const unsigned char &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const long &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const unsigned long &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const long long &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const unsigned long long &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const double &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const float &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const cfloat &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const cdouble &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const bool &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const int &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const unsigned &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const char &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const unsigned char &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const long &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const unsigned long &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const long long &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const unsigned long long &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const double &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const float &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const cfloat &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const cdouble &rhs)
 
array operator^ (const short &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const unsigned short &lhs, const array &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const short &rhs)
 Performs an bitwise XOR operation on two arrays or an array and a value.
 
array operator^ (const array &lhs, const unsigned short &rhs)
 
array operator<< (const array &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const bool &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const int &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const unsigned &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const char &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const unsigned char &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const unsigned long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const long long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const unsigned long long &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const double &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const float &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const cfloat &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const cdouble &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const bool &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const int &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const unsigned &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const char &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const unsigned char &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const unsigned long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const long long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const unsigned long long &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const double &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const float &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const cfloat &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const cdouble &rhs)
 
array operator<< (const short &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const unsigned short &lhs, const array &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const short &rhs)
 Performs an left shift operation on two arrays or an array and a value.
 
array operator<< (const array &lhs, const unsigned short &rhs)
 
array operator>> (const array &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const bool &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const int &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const unsigned &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const char &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const unsigned char &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const long &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const unsigned long &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const long long &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const unsigned long long &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const double &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const float &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const cfloat &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const cdouble &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const bool &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const int &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const unsigned &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const char &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const unsigned char &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const long &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const unsigned long &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const long long &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const unsigned long long &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const double &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const float &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const cfloat &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const cdouble &rhs)
 
array operator>> (const short &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const unsigned short &lhs, const array &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const short &rhs)
 Performs an right shift operation on two arrays or an array and a value.
 
array operator>> (const array &lhs, const unsigned short &rhs)
 
array operator& (const array &lhs, const array &rhs)
 Performs an bitwise AND operation on two arrays or an array and a value.
 
array operator& (const array &lhs, const bool &rhs)
 
array operator& (const array &lhs, const cdouble &rhs)
 
array operator& (const array &lhs, const cfloat &rhs)
 
array operator& (const array &lhs, const char &rhs)
 
array operator& (const array &lhs, const double &rhs)
 
array operator& (const array &lhs, const float &rhs)
 
array operator& (const array &lhs, const int &rhs)
 
array operator& (const array &lhs, const long long &rhs)
 
array operator& (const array &lhs, const long &rhs)
 
array operator& (const array &lhs, const short &rhs)
 
array operator& (const array &lhs, const unsigned char &rhs)
 
array operator& (const array &lhs, const unsigned long long &rhs)
 
array operator& (const array &lhs, const unsigned long &rhs)
 
array operator& (const array &lhs, const unsigned short &rhs)
 
array operator& (const array &lhs, const unsigned &rhs)
 
array operator& (const bool &lhs, const array &rhs)
 
array operator& (const cdouble &lhs, const array &rhs)
 
array operator& (const cfloat &lhs, const array &rhs)
 
array operator& (const char &lhs, const array &rhs)
 
array operator& (const double &lhs, const array &rhs)
 
array operator& (const float &lhs, const array &rhs)
 
array operator& (const int &lhs, const array &rhs)
 
array operator& (const long long &lhs, const array &rhs)
 
array operator& (const long &lhs, const array &rhs)
 
array operator& (const short &lhs, const array &rhs)
 
array operator& (const unsigned char &lhs, const array &rhs)
 
array operator& (const unsigned long long &lhs, const array &rhs)
 
array operator& (const unsigned long &lhs, const array &rhs)
 
array operator& (const unsigned short &lhs, const array &rhs)
 
array operator& (const unsigned &lhs, const array &rhs)
 
array operator&& (const array &lhs, const array &rhs)
 Performs a logical AND operation on two arrays or an array and a value.
 
array operator&& (const array &lhs, const bool &rhs)
 
array operator&& (const array &lhs, const cdouble &rhs)
 
array operator&& (const array &lhs, const cfloat &rhs)
 
array operator&& (const array &lhs, const char &rhs)
 
array operator&& (const array &lhs, const double &rhs)
 
array operator&& (const array &lhs, const float &rhs)
 
array operator&& (const array &lhs, const int &rhs)
 
array operator&& (const array &lhs, const long long &rhs)
 
array operator&& (const array &lhs, const long &rhs)
 
array operator&& (const array &lhs, const short &rhs)
 
array operator&& (const array &lhs, const unsigned char &rhs)
 
array operator&& (const array &lhs, const unsigned long long &rhs)
 
array operator&& (const array &lhs, const unsigned long &rhs)
 
array operator&& (const array &lhs, const unsigned short &rhs)
 
array operator&& (const array &lhs, const unsigned &rhs)
 
array operator&& (const bool &lhs, const array &rhs)
 
array operator&& (const cdouble &lhs, const array &rhs)
 
array operator&& (const cfloat &lhs, const array &rhs)
 
array operator&& (const char &lhs, const array &rhs)
 
array operator&& (const double &lhs, const array &rhs)
 
array operator&& (const float &lhs, const array &rhs)
 
array operator&& (const int &lhs, const array &rhs)
 
array operator&& (const long long &lhs, const array &rhs)
 
array operator&& (const long &lhs, const array &rhs)
 
array operator&& (const short &lhs, const array &rhs)
 
array operator&& (const unsigned char &lhs, const array &rhs)
 
array operator&& (const unsigned long long &lhs, const array &rhs)
 
array operator&& (const unsigned long &lhs, const array &rhs)
 
array operator&& (const unsigned short &lhs, const array &rhs)
 
array operator&& (const unsigned &lhs, const array &rhs)
 
arrayeval (array &a)
 Evaluate an expression (nonblocking).
 
void eval (int num, array **arrays)
 Evaluate multiple arrays simultaneously.
 
void eval (array &a, array &b)
 
void eval (array &a, array &b, array &c)
 
void eval (array &a, array &b, array &c, array &d)
 
void eval (array &a, array &b, array &c, array &d, array &e)
 
void eval (array &a, array &b, array &c, array &d, array &e, array &f)
 
const arrayeval (const array &a)
 Evaluate an expression (nonblocking).
 
void eval (const array &a, const array &b)
 
void eval (const array &a, const array &b, const array &c)
 
void eval (const array &a, const array &b, const array &c, const array &d)
 
void eval (const array &a, const array &b, const array &c, const array &d, const array &e)
 
void eval (const array &a, const array &b, const array &c, const array &d, const array &e, const array &f)
 
void setManualEvalFlag (bool flag)
 Turn the manual eval flag on or off.
 
bool getManualEvalFlag ()
 Get the manual eval flag.
 
void * alloc (const size_t elements, const dtype type)
 Allocates memory using ArrayFire's memory manager.
 
void * allocV2 (const size_t bytes)
 Allocates memory using ArrayFire's memory manager.
 
template<typename T >
T * alloc (const size_t elements)
 Allocates memory using ArrayFire's memory manager.
 
void * pinned (const size_t elements, const dtype type)
 Allocate pinned memory using ArrayFire's memory manager.
 
template<typename T >
T * pinned (const size_t elements)
 Allocate pinned memory using ArrayFire's memory manager.
 
void deviceMemInfo (size_t *alloc_bytes, size_t *alloc_buffers, size_t *lock_bytes, size_t *lock_buffers)
 Gets information about the memory manager.
 
void printMemInfo (const char *msg=NULL, const int device_id=-1)
 Prints buffer details from the ArrayFire Device Manager.
 
void deviceGC ()
 Call the garbage collection function in the memory manager.
 

Variables

const double NaN
 
const double Inf
 
const double Pi
 
int end
 A special value representing the last value of an axis.
 
seq span
 A special value representing the entire axis of an af::array.
 

Typedef Documentation

◆ af_cdouble

typedef struct af::af_cdouble af_cdouble

◆ af_cfloat

typedef struct af::af_cfloat af_cfloat

◆ Backend

Definition at line 574 of file defines.h.

◆ batchFunc_t

typedef array(* batchFunc_t) (const array &lhs, const array &rhs)

Definition at line 28 of file gfor.h.

◆ binaryOp

Definition at line 586 of file defines.h.

◆ borderType

Definition at line 556 of file defines.h.

◆ cannyThreshold

Definition at line 592 of file defines.h.

◆ cdouble

Definition at line 45 of file complex.h.

◆ cfloat

Definition at line 44 of file complex.h.

◆ ColorMap

Definition at line 565 of file defines.h.

◆ connectivity

Definition at line 557 of file defines.h.

◆ convDomain

Definition at line 563 of file defines.h.

◆ convGradientType

Definition at line 603 of file defines.h.

◆ convMode

Definition at line 562 of file defines.h.

◆ CSpace

Definition at line 559 of file defines.h.

◆ diffusionEq

Definition at line 596 of file defines.h.

◆ dtype

typedef af_dtype dtype

Definition at line 553 of file defines.h.

◆ fluxFunction

Definition at line 595 of file defines.h.

◆ half

typedef af_half half

Definition at line 26 of file half.h.

◆ imageFormat

Definition at line 571 of file defines.h.

◆ interpType

Definition at line 555 of file defines.h.

◆ inverseDeconvAlgo

Definition at line 602 of file defines.h.

◆ iterativeDeconvAlgo

Definition at line 601 of file defines.h.

◆ markerType

Definition at line 577 of file defines.h.

◆ matchType

Definition at line 558 of file defines.h.

◆ matProp

Definition at line 564 of file defines.h.

◆ momentType

Definition at line 580 of file defines.h.

◆ normType

Definition at line 566 of file defines.h.

◆ randomEngineType

Definition at line 589 of file defines.h.

◆ SomeEnum

Definition at line 560 of file defines.h.

◆ source

typedef af_source source

Definition at line 554 of file defines.h.

◆ storage

Definition at line 583 of file defines.h.

◆ timer

typedef struct af::timer timer

Internal timer object.

◆ topkFunction

Definition at line 597 of file defines.h.

◆ trans

typedef af_mat_prop trans

Definition at line 561 of file defines.h.

◆ varBias

Definition at line 600 of file defines.h.

◆ YCCStd

typedef af_ycc_std YCCStd

Definition at line 568 of file defines.h.

Function Documentation

◆ abs() [1/2]

double abs ( const cdouble & val)

◆ abs() [2/2]

float abs ( const cfloat & val)

◆ allTrueByKey()

void allTrueByKey ( array & keys_out,
array & vals_out,
const array & keys,
const array & vals,
const int dim = -1 )

C++ Interface to check if all values along a given dimension are true, according to an array of keys.

NaN values are ignored.

Parameters
[out]keys_outreduced keys
[out]vals_outarray containing 1's if all true; 0's otherwise
[in]keyskeys array
[in]valsinput array
[in]dimdimension along which the check occurs

◆ batchFunc()

array batchFunc ( const array & lhs,
const array & rhs,
batchFunc_t func )

◆ calcDim()

dim_t calcDim ( const af_seq & seq,
const dim_t & parentDim )

Returns the number of elements that will be represented by seq if applied on an array.

◆ conj() [1/2]

cdouble conj ( const cdouble & val)

◆ conj() [2/2]

cfloat conj ( const cfloat & val)

◆ exampleFunction()

array exampleFunction ( const array & in,
const af_someenum_t param )

◆ filter()

array filter ( const array & image,
const array & kernel )

Image Filtering.

// filter (convolve) an image with a 3x3 sobel kernel
const float h_kernel[] = { -2.0, -1.0, 0.0,
-1.0, 0.0, 1.0,
0.0, 1.0, 2.0 };
array kernel = array(3,3,h_kernel);
array img_out = filter(img_in, kernel);
array filter(const array &image, const array &kernel)
Image Filtering.
Parameters
[in]image
[in]kernelcoefficient matrix
Returns
filtered image (same size as input)
Note
Filtering done using correlation. Array values outside bounds are assumed to have zero value (0).
Deprecated
Use af::convolve instead

◆ getActiveBackend()

af::Backend getActiveBackend ( )
Returns
af_backend which is the backend is currently active

◆ getRawPtr()

void * getRawPtr ( const array & in)
Parameters
[in]inAn multi dimensional array.
Returns
Returns the raw pointer location to the array.
Note
This pointer may be shared with other arrays. Use this function with caution.

◆ getSizeOf()

size_t getSizeOf ( af::dtype type)

Get the size of the type represented by an af_dtype enum.

◆ gforGet()

bool gforGet ( )

◆ gforSet()

void gforSet ( bool val)

◆ gforToggle()

bool gforToggle ( )

◆ imag() [1/2]

double imag ( af_cdouble val)

◆ imag() [2/2]

float imag ( af_cfloat val)

◆ isSpan()

bool isSpan ( const af_seq & seq)

Returns true if the af_seq object represents the entire range of an axis.

◆ log2()

array log2 ( const array & in)

C++ Interface to evaluate the base 2 logarithm.

Parameters
[in]ininput
Returns
base 2 logarithm

◆ meanvar()

void meanvar ( array & mean,
array & var,
const array & in,
const array & weights,
const af_var_bias bias = AF_VARIANCE_POPULATION,
const dim_t dim = -1 )

C++ Interface for mean and variance.

Parameters
[out]meanThe mean of the input array along dim dimension
[out]varThe variance of the input array along the dim dimension
[in]inThe input array
[in]weightsThe weights to scale the input array before calculating the mean and varience. If empty, the input is not scaled
[in]biasThe type of bias used for variance calculation
[in]dimThe dimension along which the variance and mean are calculated. Default is -1 meaning the first non-zero dim

◆ operator!=() [1/2]

bool operator!= ( const cdouble & lhs,
const cdouble & rhs )

◆ operator!=() [2/2]

bool operator!= ( const cfloat & lhs,
const cfloat & rhs )

◆ operator*() [1/9]

af::cdouble operator* ( const af::cdouble & lhs,
const af::cdouble & rhs )

◆ operator*() [2/9]

af::cdouble operator* ( const af::cdouble & lhs,
const af::cfloat & rhs )

◆ operator*() [3/9]

af::cdouble operator* ( const af::cdouble & lhs,
const double & rhs )

◆ operator*() [4/9]

af::cdouble operator* ( const af::cfloat & lhs,
const af::cdouble & rhs )

◆ operator*() [5/9]

af::cfloat operator* ( const af::cfloat & lhs,
const af::cfloat & rhs )

◆ operator*() [6/9]

af::cfloat operator* ( const af::cfloat & lhs,
const double & rhs )

◆ operator*() [7/9]

dim4 operator* ( const dim4 & first,
const dim4 & second )

Performs an element-wise multiplication of two dim4 objects.

◆ operator*() [8/9]

af::cdouble operator* ( const double & rhs,
const af::cdouble & lhs )

◆ operator*() [9/9]

af::cfloat operator* ( const double & rhs,
const af::cfloat & lhs )

◆ operator+() [1/9]

af::cdouble operator+ ( const af::cdouble & lhs,
const af::cdouble & rhs )

◆ operator+() [2/9]

af::cdouble operator+ ( const af::cdouble & lhs,
const af::cfloat & rhs )

◆ operator+() [3/9]

af::cdouble operator+ ( const af::cdouble & lhs,
const double & rhs )

◆ operator+() [4/9]

af::cdouble operator+ ( const af::cfloat & lhs,
const af::cdouble & rhs )

◆ operator+() [5/9]

af::cfloat operator+ ( const af::cfloat & lhs,
const af::cfloat & rhs )

◆ operator+() [6/9]

af::cfloat operator+ ( const af::cfloat & lhs,
const double & rhs )

◆ operator+() [7/9]

dim4 operator+ ( const dim4 & first,
const dim4 & second )

Performs an element-wise addition of two dim4 objects.

◆ operator+() [8/9]

af::cdouble operator+ ( const double & rhs,
const af::cdouble & lhs )

◆ operator+() [9/9]

af::cfloat operator+ ( const double & rhs,
const af::cfloat & lhs )

◆ operator-() [1/9]

af::cdouble operator- ( const af::cdouble & lhs,
const af::cdouble & rhs )

◆ operator-() [2/9]

af::cdouble operator- ( const af::cdouble & lhs,
const af::cfloat & rhs )

◆ operator-() [3/9]

af::cdouble operator- ( const af::cdouble & lhs,
const double & rhs )

◆ operator-() [4/9]

af::cdouble operator- ( const af::cfloat & lhs,
const af::cdouble & rhs )

◆ operator-() [5/9]

af::cfloat operator- ( const af::cfloat & lhs,
const af::cfloat & rhs )

◆ operator-() [6/9]

af::cfloat operator- ( const af::cfloat & lhs,
const double & rhs )

◆ operator-() [7/9]

dim4 operator- ( const dim4 & first,
const dim4 & second )

Performs an element-wise subtraction of two dim4 objects.

◆ operator-() [8/9]

af::cdouble operator- ( const double & rhs,
const af::cdouble & lhs )

◆ operator-() [9/9]

af::cfloat operator- ( const double & rhs,
const af::cfloat & lhs )

◆ operator/() [1/8]

af::cdouble operator/ ( const af::cdouble & lhs,
const af::cdouble & rhs )

◆ operator/() [2/8]

af::cdouble operator/ ( const af::cdouble & lhs,
const af::cfloat & rhs )

◆ operator/() [3/8]

af::cdouble operator/ ( const af::cdouble & lhs,
const double & rhs )

◆ operator/() [4/8]

af::cdouble operator/ ( const af::cfloat & lhs,
const af::cdouble & rhs )

◆ operator/() [5/8]

af::cfloat operator/ ( const af::cfloat & lhs,
const af::cfloat & rhs )

◆ operator/() [6/8]

af::cfloat operator/ ( const af::cfloat & lhs,
const double & rhs )

◆ operator/() [7/8]

af::cdouble operator/ ( const double & rhs,
const af::cdouble & lhs )

◆ operator/() [8/8]

af::cfloat operator/ ( const double & rhs,
const af::cfloat & lhs )

◆ operator<<() [1/3]

std::ostream & operator<< ( std::ostream & os,
const cdouble & in )

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream & os,
const cfloat & in )

◆ operator<<() [3/3]

static std::ostream & operator<< ( std::ostream & ostr,
const dim4 & dims )
inlinestatic

Prints the elements of the dim4 array separated by spaces.

Parameters
[in,out]ostrAn ostream object
[in]dimsThe dim4 object to be printed
Returns
the reference to the ostr after the dim4 string as been streamed in

Definition at line 124 of file dim4.hpp.

126{
127 ostr << dims[0] << " "
128 << dims[1] << " "
129 << dims[2] << " "
130 << dims[3];
131 return ostr;
132}

◆ operator==() [1/2]

bool operator== ( const cdouble & lhs,
const cdouble & rhs )

◆ operator==() [2/2]

bool operator== ( const cfloat & lhs,
const cfloat & rhs )

◆ operator>>() [1/3]

std::istream & operator>> ( std::istream & is,
cdouble & in )

◆ operator>>() [2/3]

std::istream & operator>> ( std::istream & is,
cfloat & in )

◆ operator>>() [3/3]

static std::istream & operator>> ( std::istream & istr,
dim4 & dims )
inlinestatic

Reads 4 dim_t values from an input stream and stores the results in a dim4.

Parameters
[in,out]istrAn istream object
[in]dimsThe dim4 object that will store the values
Returns
The istr object after 4 dim_t values have been read from the input

Definition at line 141 of file dim4.hpp.

142{
143 istr >> dims[0]
144 >> dims[1]
145 >> dims[2]
146 >> dims[3];
147 return istr;
148}

◆ real() [1/2]

double real ( af_cdouble val)

◆ real() [2/2]

float real ( af_cfloat val)

◆ seqElements()

size_t seqElements ( const af_seq & seq)

Returns the number of elements that the af_seq object represents.

◆ setFFTPlanCacheSize()

void setFFTPlanCacheSize ( size_t cacheSize)

C++ Interface for setting plan cache size.

This function doesn't do anything if called when CPU backend is active. The plans associated with the most recently used array sizes are cached.

Parameters
[in]cacheSizeis the number of plans that shall be cached

◆ timeit()

double timeit ( void(* fn )())

Variable Documentation

◆ end

int end
extern

A special value representing the last value of an axis.

◆ Inf

const double Inf
extern

◆ NaN

const double NaN
extern

◆ Pi

◆ span

seq span
extern

A special value representing the entire axis of an af::array.