Rheolef  7.2
an efficient C++ finite element environment
Loading...
Searching...
No Matches
range

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;
size_type start() const;
size_type size() const;
static range all();
};