In file mydocsrc/gml_nrcv.h:

template class gml_nrc_vector

A template class for Numerical-Recipes-like vectors

Public Methods

gml_nrc_vector (long Len)
The only constructor.
VType& operator() (long I)
Safe (bounds checked) reading and writing of vector values.
VType operator* (gml_nrc_vector & V)
Dot product operator returning a scalar.
gml_nrc_vector & operator*= (IML_DOUBLE F)
Multiply the vector by a double, returning a reference to myself.
gml_nrc_vector & operator+= (gml_nrc_vector &V)
Element-wise addition from a vector, returning a reference to myself.
gml_nrc_vector & operator-= (gml_nrc_vector &V)
Element-wise subtraction from a vector, returning a reference to myself.
gml_nrc_vector & operator= (IML_DOUBLE K)
Element-wise assignment of a constant, returning a reference to myself.
gml_nrc_vector & operator= (gml_nrc_vector &V)
Element-wise assignment from a vector, returning a reference to myself.

Documentation

A template class for Numerical-Recipes-like vectors. The class encapsulates the vector operations one might want, but is by no means complete (yet). I originally hoped to be able to use this to replace NRC's utilities, but alas it was not to be. On the other hand, these are nicer because we have bounds checking and simplified notation. Note that this class is crude compared to what can be found elsewhere (i.e. I make absolutely no claims about elegance here) but it does the job. :-)

This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++