range - index range for a subset of a vector (rheolef-7.2)
This class represents a range of index for addressing a subset of the
vec(4) container.
vec<double> x (100, 3.14);
vec<double> y = x(range(0,50));
dout << y << endl;
This documentation has been generated from file linalg/lib/range.h
struct range {
using size_type = size_t;
range (size_type start=0, size_type stop=0);
size_type start() const;
size_type size() const;
static range all();
};
Pierre Saramito <
[email protected]>
Copyright (C) 2000-2018 Pierre Saramito <
[email protected]> GPLv3+:
GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>. This is
free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.