HCL_RnVector_d is the simplest vector class
HCL_RnVector_d ( const HCL_RnVector_d & x ) Copy constructor | |
HCL_RnVector_d ( HCL_RnSpace_d * s ) Construct a vector belonging to the HCL_RnSpace_d s. | |
HCL_RnVector_d ( int n, double *data = NULL ) Construct a vector belonging to n-space, and optionally initialize with the contents of the "data" array by COPYING a pointer to double - note that in this case the destructor will NOT DELETE the data pointer, as it presumably belongs to some other object | |
HCL_RnVector_d ( const HCL_RnSpace_d & s, char * fname = NULL ) Construct a ``new'' vector belonging to the HCL_RnSpace_d s, and optionally specify an ASCII file to which the data will be saved | |
HCL_RnVector_d ( char * fname, int save = 1 ) Construct a ``old'' vector by reading the contents of the specified ASCII file | |
virtual int | Dim () const Dim returns the dimension of the vector space. |
virtual HCL_VectorSpace_d& | Space () const Space returns a reference to the vector space to which this vector belongs |
double& | operator) ( int i ) The () operator is a function for accessing the components of the vector |
double | operator) ( int i ) const The () operator is a function for accessing the components of the vector |
virtual double* | Data () Data returns a pointer to an array containing the component values of the vector |
void | Save ( char * fname ) Save to a file |
virtual ostream& | Write ( ostream & str ) const Write prints the dimension of the vector, followed by the first 10 components of the vector (or all of the componenents if the dimension is less than 10) |
Vector operations (z is *this, which is C++-ese for the instance
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array operations - ``Matlab'' methods. In describing these,
|
Vector operations (z is the object invoking the method).
Access to components.
Array operations - ``Matlab'' methods.
HCL_RnVector_d is the simplest vector class. The components of a vector are stored in a 1D Fortran-style array. Operations on the vectors are implemented using explicit loops.
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de