4 There are several ways of referencing values. ArrayFire uses
5 parenthesis for subscripted referencing instead of the traditional
6 square bracket notation. Indexing is zero-based, i.e. the first
7 element is at index zero (<tt>A(0)</tt>). Indexing can be done
10 * [seq()](\ref af::seq) representing a linear sequence
11 * [end](\ref af::end) representing the last element of a dimension
12 * [span](\ref af::span) representing the entire dimension
13 * [row(i)](\ref af::array::row) or [col(i)](\ref af::array::col) specifying a single row/column
14 * [rows(first,last)](\ref af::array::rows) or [cols(first,last)](\ref af::array::cols)
15 specifying a span of rows or columns
17 See \ref index_mat for the full listing.
19 \snippet test/index.cpp ex_indexing_first
21 You can set values in an array:
23 \snippet test/index.cpp ex_indexing_set
25 Use one array to reference into another.
27 \snippet test/index.cpp ex_indexing_ref