A template class for Numerical-Recipes-like vectors
![]() | gml_nrc_vector (long Len) The only constructor. |
![]() | operator() (long I) Safe (bounds checked) reading and writing of vector values. |
![]() | operator* (gml_nrc_vector Dot product operator returning a scalar. |
![]() | operator*= (IML_DOUBLE F) Multiply the vector by a double, returning a reference to myself. |
![]() | operator+= (gml_nrc_vector &V) Element-wise addition from a vector, returning a reference to myself. |
![]() | operator-= (gml_nrc_vector &V) Element-wise subtraction from a vector, returning a reference to myself. |
![]() | operator= (IML_DOUBLE K) Element-wise assignment of a constant, returning a reference to myself. |
![]() | operator= (gml_nrc_vector &V) Element-wise assignment from a vector, returning a reference to myself. |
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. :-)
generated by doc++