|
My Project
|
|
Go to the documentation of this file.
106 #if AF_API_VERSION >= 31
107 index(
const index& idx0);
131 #if AF_API_VERSION >= 31
132 index & operator=(
const index& idx0);
141 #if __cplusplus > 199711L
154 index& operator=(index &&idx0);
156 #endif // AF_API_VERSION
172 #if AF_API_VERSION >= 31
187 const index &idx1 =
span,
188 const index &idx2 =
span,
189 const index &idx3 =
span);
212 const unsigned ndims,
const af_seq*
const index);
249 const unsigned ndims,
const af_seq*
const indices,
292 #if AF_API_VERSION >= 32
304 #if AF_API_VERSION >= 32
318 #if AF_API_VERSION >= 32
330 const dim_t dim,
const bool is_batch);
333 #if AF_API_VERSION >= 32
348 const double begin,
const double end,
const double step,
349 const dim_t dim,
const bool is_batch);
352 #if AF_API_VERSION >= 32
AFAPI af_err af_set_seq_param_indexer(af_index_t *indexer, const double begin, const double end, const double step, const dim_t dim, const bool is_batch)
set dim to given indexer af_array idx
seq is used to create seq for indexing af::array
Definition: seq.h:44
long long dim_t
Definition: defines.h:49
#define AFAPI
Definition: defines.h:30
A multi dimensional data container.
Definition: array.h:32
Definition: algorithm.h:13
Struct used while indexing af_array.
Definition: index.h:22
bool isSeq
If true the idx value represents a seq.
Definition: index.h:34
void * af_array
Definition: defines.h:221
bool isBatch
If true the seq object is a batch parameter.
Definition: index.h:35
AFAPI af_err af_release_indexers(af_index_t *indexers)
Release's the memory resource used by the quadruple af_index_t array.
AFAPI array lookup(const array &in, const array &idx, const int dim=-1)
Lookup the values of input array based on index.
AFAPI af_err af_assign_gen(af_array *out, const af_array lhs, const dim_t ndims, const af_index_t *indices, const af_array rhs)
Assignment of an array using af_seq, or af_array.
AFAPI af_err af_assign_seq(af_array *out, const af_array lhs, const unsigned ndims, const af_seq *const indices, const af_array rhs)
Copy and write values in the locations specified by the sequences.
AFAPI af_err af_index_gen(af_array *out, const af_array in, const dim_t ndims, const af_index_t *indices)
Indexing an array using af_seq, or af_array.
af_seq seq
The af_seq used for indexing.
Definition: index.h:37
af_array arr
The af_array used for indexing.
Definition: index.h:36
AFAPI af_err af_lookup(af_array *out, const af_array in, const af_array indices, const unsigned dim)
Lookup the values of input array based on index.
AFAPI af_err af_create_indexers(af_index_t **indexers)
Create an quadruple of af_index_t array.
struct af_index_t af_index_t
Struct used while indexing af_array.
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:328
AFAPI af_err af_set_array_indexer(af_index_t *indexer, const af_array idx, const dim_t dim)
set dim to given indexer af_array idx
AFAPI 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.
AFAPI af_err af_set_seq_indexer(af_index_t *indexer, const af_seq *idx, const dim_t dim, const bool is_batch)
set dim to given indexer af_array idx
af_err
Definition: defines.h:62
C-style struct to creating sequences for indexing.
Definition: seq.h:19
AFAPI af_err af_index(af_array *out, const af_array in, const unsigned ndims, const af_seq *const index)
Lookup the values of input array based on sequences.