35 template <
class Row,
class Col>
class Range {
66 inline Range(
int i1_) : i1(i1_), i2(i1_) {
67 #ifndef FMATVEC_NO_BOUNDS_CHECK
78 inline Range(
int i1_,
int i2_) : i1(i1_), i2(i2_) {
79 #ifndef FMATVEC_NO_BOUNDS_CHECK
95 int end()
const {
return i2;}
101 int size()
const {
return i2-i1+1;}
125 int end()
const {
return I2;}
140 typedef Range<Var,Var> Index;
bool operator==(const Index &I, const Index &J)
Equality operator for indices.
Definition: index.cc:26
int end() const
Last element.
Definition: range.h:125
int start() const
First element.
Definition: range.h:119
Range(int i1_, int i2_)
Regular constructor.
Definition: range.h:78
This is an index class for creating submatrices.
Definition: range.h:35
int size() const
Size.
Definition: range.h:101
Range()
Standard constructor.
Definition: range.h:59
int end() const
Last element.
Definition: range.h:95
Range(int i1_)
Regular constructor.
Definition: range.h:66
This is an index class for creating submatrices.
Definition: range.h:44
int start() const
First element.
Definition: range.h:89