Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

interval Struct Reference
[Useful ancillary stuff]

A class to define index-sets, specifically for subvectors and submatrices. More...

#include <linalg_abstract.h>

List of all members.

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.


Detailed Description

A class to define index-sets, specifically for subvectors and submatrices.

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.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 14 22:25:28 2006 for linalg by  doxygen 1.4.4