#include <linalg_abstract.h>
Public Member Functions | |
itype | begin () |
The first element of the interval. | |
itype | end () |
The last element of the interval. | |
itype | size () |
The length of the interval. | |
interval (itype s) | |
Construct an interval containing {s}. | |
interval (itype s, itype e) | |
Construct an interval containing {s...e}. | |
Public Attributes | |
itype | offset |
The first element of the interval. | |
itype | range |
The length of the interval. |
The interval data-type is not fully developed yet. At the moment, it allows a convenient way to specify subvectors and submatrices. Eventually, I will try to extend it to generalized subsets of the positive integers; it will be possible to select V[[1,3,5..8]], for instance. This is not, however, a high priority. At the moment, interval is constructed as interval(start,end), and is stored as {offset,range}. No error checking.