|
Gets a reference to a set of elements. More...
Functions | |
array::array_proxy | operator() (const index &s0) |
This operator returns a reference of the original array at a given coordinate. More... | |
const array::array_proxy | operator() (const index &s0) const |
This operator returns a reference of the original array at a given coordinate. More... | |
array::array_proxy | operator() (const index &s0, const index &s1, const index &s2=span, const index &s3=span) |
This operator returns a reference of the original array at a given coordinate. More... | |
const array::array_proxy | operator() (const index &s0, const index &s1, const index &s2=span, const index &s3=span) const |
This operator returns a reference of the original array at a given coordinate. More... | |
Gets a reference to a set of elements.
This operator returns a reference of the original array at a given coordinate. You can pass af::seq, af::array, or an int as it's parameters. These references can be used for assignment or returning references to af::array objects.
array::array_proxy operator() | ( | const index & | s0 | ) |
This operator returns a reference of the original array at a given coordinate.
You can pass af::seq, af::array, or an int as it's parameters. These references can be used for assignment or returning references to af::array objects.
If the af::array is a multi-dimensional array then this coordinate will treated as the data as a linear array.
[in] | s0 | is sequence of linear indices |
const array::array_proxy operator() | ( | const index & | s0 | ) | const |
This operator returns a reference of the original array at a given coordinate.
You can pass af::seq, af::array, or an int as it's parameters. These references can be used for assignment or returning references to af::array objects.
If the af::array is a multi-dimensional array then this coordinate will treated as the data as a linear array.
[in] | s0 | is sequence of linear indices |
array::array_proxy operator() | ( | const index & | s0, |
const index & | s1, | ||
const index & | s2 = span , |
||
const index & | s3 = span |
||
) |
This operator returns a reference of the original array at a given coordinate.
You can pass af::seq, af::array, or an int as it's parameters. These references can be used for assignment or returning references to af::array objects.
[in] | s0 | is sequence of indices along the first dimension |
[in] | s1 | is sequence of indices along the second dimension |
[in] | s2 | is sequence of indices along the third dimension |
[in] | s3 | is sequence of indices along the fourth dimension |
const array::array_proxy operator() | ( | const index & | s0, |
const index & | s1, | ||
const index & | s2 = span , |
||
const index & | s3 = span |
||
) | const |
This operator returns a reference of the original array at a given coordinate.
You can pass af::seq, af::array, or an int as it's parameters. These references can be used for assignment or returning references to af::array objects.
[in] | s0 | is sequence of indices along the first dimension |
[in] | s1 | is sequence of indices along the second dimension |
[in] | s2 | is sequence of indices along the third dimension |
[in] | s3 | is sequence of indices along the fourth dimension |