63 void AddRows(
int add,
int length,
int value);
83 void Print(ofstream& outfile)
const;
This class implements a dynamic vector of IntVector values.
Definition: intmatrix.h:10
IntVector ** v
This is the vector of IntVector values.
Definition: intmatrix.h:97
IntMatrix()
This is the default IntMatrix constructor.
Definition: intmatrix.h:15
void Delete(int pos)
This will delete an entry from the vector.
Definition: intmatrix.cc:57
void Reset()
This will reset the vector.
Definition: intmatrix.cc:96
void setToZero()
This function will set all of the entries of the vector to zero.
Definition: intmatrix.cc:117
int Ncol(int i=0) const
This will return the number of columns in row i of the vector.
Definition: intmatrix.h:39
void Print(ofstream &outfile) const
This function will print the data stored in the vector.
Definition: intmatrix.cc:107
int Nrow() const
This will return the number of rows of the vector.
Definition: intmatrix.h:44
int nrow
This is number of rows of the vector.
Definition: intmatrix.h:93
IntVector & operator[](int pos)
This will return the value of an element of the vector.
Definition: intmatrix.h:50
IntMatrix & operator=(const IntMatrix &initial)
This operator will set the vector equal to an existing IntMatrix.
Definition: intmatrix.cc:76
~IntMatrix()
This is the IntMatrix destructor.
Definition: intmatrix.cc:24
void AddRows(int add, int length, int value)
This will add new entries to the vector.
Definition: intmatrix.cc:34
This class implements a dynamic vector of int values.
Definition: intvector.h:11
int Size() const
This will return the size of the vector.
Definition: intvector.h:49