44 void resize(
int addsize,
double value);
This class implements a dynamic vector of double values.
Definition: doublevector.h:11
void Delete(int pos)
This will delete an entry from the vector.
Definition: doublevector.cc:64
DoubleVector & operator=(const DoubleVector &d)
This operator will set the vector equal to an existing DoubleVector.
Definition: doublevector.cc:105
double operator*(const DoubleVector &d) const
This operator will calculate the dot product of the vector and an existing DoubleVector.
Definition: doublevector.cc:96
void resize(int addsize, double value)
This will add new entries to the vector.
Definition: doublevector.cc:41
double & operator[](int pos)
This will return the value of an element of the vector.
Definition: doublevector.h:61
double * v
This is the vector of double values.
Definition: doublevector.h:92
void Reset()
This will reset the vector.
Definition: doublevector.cc:82
~DoubleVector()
This is the DoubleVector destructor.
Definition: doublevector.cc:34
void setToZero()
This function will set all of the entries of the vector to zero.
Definition: doublevector.cc:90
int size
This is the size of the vector.
Definition: doublevector.h:96
DoubleVector()
This is the default DoubleVector constructor.
Definition: doublevector.h:16
int Size() const
This will return the size of the vector.
Definition: doublevector.h:55