itertools::range::constructor¶
#include <itertools/range.hpp>
Synopsis
range () range (range::index_t first__,range::index_t last__,range::index_t step__ = 1) range (range::index_t i)
Documentation
1) Default constructor
range() stands for the whole set of indices in the dimension (like : in python) Example: A(range(), 0) takes the first column of A2) Constructor
3) Constructor
Constructs range(0, i, 1)
Parameters¶
- first__ The first index of the range
- last__ The first index past the end of the range
- step__ The step between two indices