Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
<tt>range</tt>

index range for a subset of a vector

Description

This class represents a range of index for addressing a subset of the vec 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();
field::size_type size_type
Definition branch.cc:430
size_type start() const
Definition range.h:85
static range all()
Definition range.h:87
size_type size() const
Definition range.h:86
};