itertools::range::constructor

#include <itertools/range.hpp>

Synopsis

  1. range ()
  2. range (range::index_t first__,
    range::index_t last__,
    range::index_t step__ = 1)
  3. 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 A

2) 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