DOKK / manpages / debian 12 / librheolef-dev / range.4rheolef.en
range(4rheolef) rheolef range(4rheolef)

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 <Pierre.Saramito@imag.fr>

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.

Mon Sep 19 2022 Version 7.2