class HCL_ProductVector_d : public HCL_Vector_d

HCL_ProductVector_d represents a vector from a product space

Inheritance:


Public Methods

virtual void Add ( const HCL_Vector_d & x )
z <-- z + x
virtual void Add ( const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x + y
virtual void AddScale (const double & a, const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x + a*y
virtual void AddScale (const double & a, const HCL_Vector_d & x )
z <-- z + a*x
virtual void Copy ( const HCL_Vector_d & x )
z <-- x (here and below, z is *this)
HCL_ProductVector_d ( int n )
This constructor creates a product vector with n factors
HCL_ProductVector_d ()
Default constructor---for use by derived classes that wish to assign the space and length
HCL_ProductVector_d ( HCL_ProductVectorSpace_d * p )
Constructor to create a vector from the space (copies pointer).
HCL_ProductVector_d (const HCL_ProductVectorSpace_d & p)
Constructor to create a vector from the space.
HCL_ProductVector_d ( HCL_Vector_d * v1, HCL_Vector_d * v2 )
Creates a vector from a product space with two factors
int Initialized ()
Initialized is a boolean method indicating whether the factors in the vector have been initialized
virtual double Inner ( const HCL_Vector_d & x )
Inner product of z with x
int IsSet ( int i )
IsSet is a boolean method indicating whether the indicated factor has been set
virtual void Mul ( const double & a, const HCL_Vector_d & x )
z <-- a*x
virtual void Mul ( const double & a )
z <-- a*z
virtual void Neg ()
z <-- -z
virtual double Norm ()
Norm of z
virtual double Norm2 ()
Norm squared of z
virtual int Number ()
Number returns the number of factors in the product.
virtual HCL_Vector_d& operator) (int i)
Operator() returns a reference to the ith factor.
virtual HCL_ProductVectorSpace_d& ProductSpace ()
ProductSpace returns a reference to the space to which this vector, explicitly as a product space belongs
virtual void Random ()
Returns a "random" vector
virtual void ScaleAdd (const double & a, const HCL_Vector_d & x )
z <-- a*z + x
void Set ( int i, HCL_Vector_d * x )
Set specifies an arbitrary vector in the product
void SetNext ( HCL_Vector_d * x )
SetNext specifies the next vector in the product
virtual HCL_VectorSpace_d& Space ()
Space returns a reference to the space to which this vector belongs.
virtual void Sub (const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x - y
virtual void Sub ( const HCL_Vector_d & x )
z <-- z - x
virtual ostream& Write (ostream &)
Write prints out information about the object.
virtual void Zero ()
z <-- 0
virtual ~HCL_ProductVector_d ()
Destructor.

Inherited from HCL_Vector_d:

Public

Vector operations (z is *this, which is C++-ese for the instance of the class invoking the method)

virtual void Copy( const HCL_Vector_d & x )
z <-- x
virtual void Neg()
z <-- -z
virtual void Mul( const double & a )
z <-- a*z
virtual void Add( const HCL_Vector_d & x )
z <-- z + x
virtual void Mul( const double & a, const HCL_Vector_d & x )
z <-- a*x
virtual void Add( const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x + y
virtual void Sub( const HCL_Vector_d & x )
z <-- z - x
virtual void Sub(const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x - y
virtual void ScaleAdd(const double & a, const HCL_Vector_d & x )
z <-- a*z + x
virtual void AddScale(const double & a, const HCL_Vector_d & x )
z <-- z + a*x
virtual void AddScale(const double & a, const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x + a*y
virtual double Inner( const HCL_Vector_d & x )
Inner product of z with x.
virtual double Norm()
Norm of z.
virtual double Norm2()
Norm squared of z.
virtual HCL_VectorSpace_d& Space()
Returns a reference to the space of which z is a member
virtual void Zero()
z <-- 0
virtual void Random()
Returns a "random" vector

Inherited from HCL_Base:

Public Methods

int Count()
void DecCount()
void IncCount()

Private Fields

int ReferenceCount

Documentation

HCL_ProductVector_d represents a vector from a product space
HCL_ProductVector_d()
Default constructor---for use by derived classes that wish to assign the space and length

HCL_ProductVector_d(const HCL_ProductVectorSpace_d & p)
Constructor to create a vector from the space.

HCL_ProductVector_d( HCL_ProductVectorSpace_d * p )
Constructor to create a vector from the space (copies pointer).

HCL_ProductVector_d( HCL_Vector_d * v1, HCL_Vector_d * v2 )
Creates a vector from a product space with two factors. This object copies pointers to the two given vectors.

HCL_ProductVector_d( int n )
This constructor creates a product vector with n factors. The factors must be specified with the SetNext method.

virtual ~HCL_ProductVector_d()
Destructor.

int Initialized()
Initialized is a boolean method indicating whether the factors in the vector have been initialized

int IsSet( int i )
IsSet is a boolean method indicating whether the indicated factor has been set

virtual HCL_Vector_d& operator)(int i)
Operator() returns a reference to the ith factor.

virtual HCL_VectorSpace_d& Space()
Space returns a reference to the space to which this vector belongs.

virtual HCL_ProductVectorSpace_d& ProductSpace()
ProductSpace returns a reference to the space to which this vector, explicitly as a product space belongs

virtual int Number()
Number returns the number of factors in the product.

virtual void Copy( const HCL_Vector_d & x )
z <-- x (here and below, z is *this)

virtual void Neg()
z <-- -z

virtual void Mul( const double & a )
z <-- a*z

virtual void Add( const HCL_Vector_d & x )
z <-- z + x

virtual void Mul( const double & a, const HCL_Vector_d & x )
z <-- a*x

virtual void Add( const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x + y

virtual void Sub( const HCL_Vector_d & x )
z <-- z - x

virtual void Sub(const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x - y

virtual void ScaleAdd(const double & a, const HCL_Vector_d & x )
z <-- a*z + x

virtual void AddScale(const double & a, const HCL_Vector_d & x )
z <-- z + a*x

virtual void AddScale(const double & a, const HCL_Vector_d & x, const HCL_Vector_d & y )
z <-- x + a*y

virtual double Inner( const HCL_Vector_d & x )
Inner product of z with x

virtual double Norm()
Norm of z

virtual double Norm2()
Norm squared of z

virtual void Zero()
z <-- 0

virtual void Random()
Returns a "random" vector. Just calls the Random() method from each class.

void SetNext( HCL_Vector_d * x )
SetNext specifies the next vector in the product.

void Set( int i, HCL_Vector_d * x )
Set specifies an arbitrary vector in the product.

virtual ostream& Write(ostream &)
Write prints out information about the object.


This class has no child classes.

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