HCL_Vector_d is the base class for all vectors in HCL
![]() | Write (ostream &) Debugging information |
![]() | Vector operations (z is *this, which is C++-ese for the instance of the class invoking the method)
|
HCL_Vector_d is the base class for all vectors in HCL. Vectors are implemented as concrete classes derived from HCL_Vector_d so that the optimization code need make no assumptions about the data structures used to implement the vectors. This is essential when nonstandard data structures (such as disk files for very large problems) are used.A vector in HCL represents a completely abstract vector in a Hilbert space. Thus this class does not explicitly refer to coordinates. Many optimization algorithms do not need to use coordinates, and, for such algorithms, this is the right level of abstractions. Certain problems or algorithms require a finite-dimensional vector space with explicit coordinates (e.g. inequality constraints are naturally represented by an operator mapping an abstract Hilbert space to a finite-dimensional space). To define such a coordinate-based space, see the derived class HCL_EuclideanVector_d.
Note that each class derived from HCL_Vector_d must correspond to a class derived from HCL_VectorSpace_d. That is, if one wishes to create a class MyVector, derived from HCL_Vector_d, one is obligated to first define MyVectorSpace, derived from HCL_VectorSpace_d.
virtual void Neg()
virtual void Mul( const double & a )
virtual void Add( const HCL_Vector_d & x )
virtual void Mul( const double & a, const HCL_Vector_d & x )
virtual void Add( const HCL_Vector_d & x, const HCL_Vector_d & y )
virtual void Sub( const HCL_Vector_d & x )
virtual void Sub(const HCL_Vector_d & x, const HCL_Vector_d & y )
virtual void ScaleAdd(const double & a, const HCL_Vector_d & x )
virtual void AddScale(const double & a, const HCL_Vector_d & x )
virtual void AddScale(const double & a, const HCL_Vector_d & x, const HCL_Vector_d & y )
virtual double Inner( const HCL_Vector_d & x )
virtual double Norm()
virtual double Norm2()
virtual HCL_VectorSpace_d& Space()
virtual void Zero()
virtual void Random()
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de