Wrapper for af_index. More...
#include <index.h>
Public Member Functions | |
| index () | |
| Default constructor. | |
| ~index () | |
| index (const int idx) | |
| Implicit int converter. | |
| index (const af::seq &s0) | |
| Implicit seq converter. | |
| index (const af_seq &s0) | |
| Implicit seq converter. | |
| index (const af::array &idx0) | |
| Implicit int converter. | |
| index (const index &idx0) | |
| Copy constructor. | |
| bool | isspan () const |
| Returns true if the index represents a af::span object. | |
| const af_index_t & | get () const |
| Gets the underlying af_index_t object. | |
| index & | operator= (const index &idx0) |
| Assigns idx0 to this index. | |
Wrapper for af_index.
This class is a wrapper for the af_index struct in the C interface. It allows implicit type conversion from valid indexing types like int, seq, af_seq, and array.
| ~index | ( | ) |
| index | ( | const int | idx | ) |
Implicit int converter.
Indexes the af::array at index idx
| [in] | idx | is the id of the index |
| const af_index_t & get | ( | ) | const |
Gets the underlying af_index_t object.
| bool isspan | ( | ) | const |
Assigns idx0 to this index.
| [in] | idx0 | is the index to be assigned to the /ref af::index |