303                       const dim_t d3 = 1, 
const int seq_dim = -1, 
const dtype ty=
f32);
 
  379                      const unsigned z=1, 
const unsigned w=1);
 
  401                         const unsigned y=1, 
const unsigned z=2, 
const unsigned w=3);
 
  482 #if AF_API_VERSION >= 31 
  494 #if AF_API_VERSION >= 31 
  506 #if AF_API_VERSION >= 31 
  518 #if AF_API_VERSION >= 31 
  529 #if AF_API_VERSION >= 31 
  574                                      const unsigned ndims, 
const dim_t * 
const dims, 
const af_dtype type);
 
  611                           const int seq_dim, 
const af_dtype type);
 
  624                          const unsigned t_ndims, 
const dim_t * 
const tdims, 
const af_dtype type);
 
  726                          const unsigned x, 
const unsigned y, 
const unsigned z, 
const unsigned w);
 
  739                             const unsigned x, 
const unsigned y, 
const unsigned z, 
const unsigned w);
 
  801 #if AF_API_VERSION >= 31 
  813 #if AF_API_VERSION >= 31 
  825 #if AF_API_VERSION >= 31 
  837 #if AF_API_VERSION >= 31 
  848 #if AF_API_VERSION >= 31 
AFAPI af_err af_randu(af_array *out, const unsigned ndims, const dim_t *const dims, const af_dtype type)
AFAPI array randn(const dim4 &dims, const dtype ty=f32)
AFAPI array join(const int dim, const array &first, const array &second)
Join 2 arrays along dim. 
AFAPI af_err af_set_seed(const uintl seed)
AFAPI array moddims(const array &in, const unsigned ndims, const dim_t *const dims)
AFAPI af_err af_constant_complex(af_array *arr, const double real, const double imag, const unsigned ndims, const dim_t *const dims, const af_dtype type)
AFAPI array lower(const array &in, bool is_unit_diag=false)
Definition: algorithm.h:14
AFAPI af_err af_get_seed(uintl *seed)
AFAPI array flip(const array &in, const unsigned dim)
AFAPI af_err af_shift(af_array *out, const af_array in, const int x, const int y, const int z, const int w)
AFAPI af_err af_moddims(af_array *out, const af_array in, const unsigned ndims, const dim_t *const dims)
AFAPI af_err af_constant_long(af_array *arr, const intl val, const unsigned ndims, const dim_t *const dims)
AFAPI af_err af_range(af_array *out, const unsigned ndims, const dim_t *const dims, const int seq_dim, const af_dtype type)
AFAPI af_err af_iota(af_array *out, const unsigned ndims, const dim_t *const dims, const unsigned t_ndims, const dim_t *const tdims, const af_dtype type)
AFAPI af_err af_identity(af_array *out, const unsigned ndims, const dim_t *const dims, const af_dtype type)
AFAPI af_err af_randn(af_array *out, const unsigned ndims, const dim_t *const dims, const af_dtype type)
AFAPI af_err af_replace(af_array a, const af_array cond, const af_array b)
AFAPI af_err af_join_many(af_array *out, const int dim, const unsigned n_arrays, const af_array *inputs)
Join many arrays along dim. 
AFAPI af_err af_select(af_array *out, const af_array cond, const af_array a, const af_array b)
AFAPI af_err af_diag_extract(af_array *out, const af_array in, const int num)
AFAPI af_err af_flat(af_array *out, const af_array in)
AFAPI array range(const dim4 &dims, const int seq_dim=-1, const dtype ty=f32)
AFAPI array diag(const array &in, const int num=0, const bool extract=true)
AFAPI array reorder(const array &in, const unsigned x, const unsigned y=1, const unsigned z=2, const unsigned w=3)
af_err
Definition: defines.h:67
AFAPI af_err af_join(af_array *out, const int dim, const af_array first, const af_array second)
Join 2 arrays along dim. 
AFAPI af_err af_diag_create(af_array *out, const af_array in, const int num)
AFAPI af_err af_constant(af_array *arr, const double val, const unsigned ndims, const dim_t *const dims, const af_dtype type)
AFAPI array select(const array &cond, const array &a, const array &b)
AFAPI af_err af_upper(af_array *out, const af_array in, bool is_unit_diag)
long long dim_t
Definition: defines.h:50
AFAPI array imag(const array &in)
C++ Interface for getting imaginary part from complex array. 
AFAPI array randu(const dim4 &dims, const dtype ty=f32)
AFAPI array real(const array &in)
C++ Interface for getting real part from complex array. 
AFAPI array flat(const array &in)
AFAPI af_err af_constant_ulong(af_array *arr, const uintl val, const unsigned ndims, const dim_t *const dims)
AFAPI af_err af_select_scalar_r(af_array *out, const af_array cond, const af_array a, const double b)
#define AFAPI
Definition: defines.h:31
AFAPI af_err af_replace_scalar(af_array a, const af_array cond, const double b)
AFAPI af_err af_select_scalar_l(af_array *out, const af_array cond, const double a, const af_array b)
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer. 
Definition: opencl.h:161
AFAPI af_err af_tile(af_array *out, const af_array in, const unsigned x, const unsigned y, const unsigned z, const unsigned w)
unsigned long long uintl
Definition: defines.h:60
array constant(T val, const dim4 &dims, const dtype ty=(af_dtype) dtype_traits< T >::ctype)
AFAPI array tile(const array &in, const unsigned x, const unsigned y=1, const unsigned z=1, const unsigned w=1)
AFAPI af_err af_reorder(af_array *out, const af_array in, const unsigned x, const unsigned y, const unsigned z, const unsigned w)
void * af_array
Definition: defines.h:219
AFAPI void setSeed(const uintl seed)
AFAPI void replace(array &a, const array &cond, const array &b)
32-bit floating point values 
Definition: defines.h:193
AFAPI af_err af_lower(af_array *out, const af_array in, bool is_unit_diag)
AFAPI array shift(const array &in, const int x, const int y=0, const int z=0, const int w=0)
AFAPI array iota(const dim4 &dims, const dim4 &tile_dims=dim4(1), const dtype ty=f32)
af_dtype
Definition: defines.h:192
AFAPI af_err af_flip(af_array *out, const af_array in, const unsigned dim)
af_dtype dtype
Definition: defines.h:384
long long intl
Definition: defines.h:59
AFAPI array upper(const array &in, bool is_unit_diag=false)
AFAPI array identity(const dim4 &dims, const dtype ty=f32)