56 inline Index(
int i1_) : i1(i1_), i2(i1_) {
57 #ifndef FMATVEC_NO_BOUNDS_CHECK
68 inline Index(
int i1_,
int i2_) : i1(i1_), i2(i2_) {
69 #ifndef FMATVEC_NO_BOUNDS_CHECK
85 int end()
const {
return i2;}
91 int size()
const {
return i2-i1+1;}
99 bool operator==(
const Index &I,
const Index &J);
bool operator==(const Index &I, const Index &J)
Equality operator for indices.
Definition: index.cc:26
Index()
Standard constructor.
Definition: index.h:49
int end() const
Last element.
Definition: index.h:85
int size() const
Size.
Definition: index.h:91
This is an index class for creating submatrices.
Definition: index.h:34
Index(int i1_, int i2_)
Regular constructor.
Definition: index.h:68
int start() const
First element.
Definition: index.h:79
Index(int i1_)
Regular constructor.
Definition: index.h:56