|
|
Wrapper for af_index. More...
#include <index.h>
Public Member Functions | |
| index () | |
| Default constructor. More... | |
| ~index () | |
| index (const int idx) | |
| Implicit int converter. More... | |
| index (const af::seq &s0) | |
| Implicit seq converter. More... | |
| index (const af_seq &s0) | |
| Implicit seq converter. More... | |
| index (const af::array &idx0) | |
| Implicit int converter. More... | |
| index (const index &idx0) | |
| Copy constructor. More... | |
| bool | isspan () const |
| Returns true if the af::index represents a af::span object. More... | |
| const af_index_t & | get () const |
| Gets the underlying af_index_t object. More... | |
| index & | operator= (const index &idx0) |
| Assigns idx0 to this index. More... | |
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, af::seq, af_seq, and af::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 |