range - index range for a subset of a vector (rheolef-7.2)
Contents
Copyright
Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr> 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.
rheolef Version 7.2 range(4rheolef)
Description
This class represents a range of index for addressing a subset of the vec(4) container.
Example
vec<double> x (100, 3.14);
vec<double> y = x(range(0,50));
dout << y << endl;
Implementation
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();
};
Name
range - index range for a subset of a vector (rheolef-7.2)
