Scroll to navigation

range(4rheolef) range(4rheolef)

NAME

range - index range for a subset of a vector (rheolef-7.2)

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();

};

AUTHOR

Pierre Saramito <Pierre.Saramito@imag.fr>

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.

Version 7.2 rheolef