|
Tannic
A C++ Tensor Library
|
Represents a half-open interval [start, stop) for slicing.
More...
#include <indexing.hpp>
Public Attributes | |
| int | start = 0 |
| int | stop = -1 |
Represents a half-open interval [start, stop) for slicing.
The Range struct mimics Python's slice behavior:
start is inclusivestop is exclusiveBy default:
start = 0 (beginning of the axis)stop = -1 (interpreted as "until the end" when normalized)| int tannic::indexing::Range::start = 0 |
| int tannic::indexing::Range::stop = -1 |