class HCL_GenericProductSpace_d : public HCL_ProductSpace_d

HCL_GenericProductSpace_d is a concrete product vector space class; it represents a vector space which is defined as a product of several existing vector spaces

Inheritance:


Public Methods

HCL_GenericProductSpace_d ( int n )
This constructor creates a product space with n factors
HCL_GenericProductSpace_d ( const HCL_VectorSpace_d & S1, const HCL_VectorSpace_d & S2 )
Provided for convenience; creates a product space with 2 factors
HCL_GenericProductSpace_d ( HCL_VectorSpace_d * S1, HCL_VectorSpace_d * S2 )
Provided for convenience; creates a product space with 2 factors (copies pointers)
HCL_GenericProductSpace_d ( const HCL_VectorSpace_d & S, int n )
This constructor creates a product space with n identical factors
HCL_GenericProductSpace_d ( HCL_VectorSpace_d * S, int n )
This constructor creates a product space with n identical factors (copies pointers)
int Initialized () const
Initialized is a boolean method indicating whether the factors in the space have been initialized
int IsSet ( int i ) const
IsSet is a boolean method indicating whether the indicated factor has been set
virtual void* GetType () const
Get type of vector space for comparison
HCL_Vector_d* Member () const
Virtual constructor
virtual HCL_VectorSpace_d* Replicate () const
Virtual copy constructor
virtual int Number () const
Number returns the number of factors.
HCL_VectorSpace_d& operator) ( int i ) const
The () operator returns a reference to the ith factor.
void SetNext ( HCL_VectorSpace_d * S )
SetNext allows the user to specify the next factor in the product
void Set ( int i, HCL_VectorSpace_d * S )
Set allows the user to specify an arbitrary factor in the product
virtual ostream& Write (ostream & str) const
Write prints out the factors in the product.

Inherited from HCL_ProductSpace_d:

Public Methods

virtual int operator == (const HCL_VectorSpace_d & xx) const
virtual int Dim() const

Inherited from HCL_VectorSpace_d:

Public Methods

virtual int operator != (const HCL_VectorSpace_d & x) const
int Test( int display = 0, double tol = 100 ) const

Inherited from HCL_Base:

Public Methods

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

Documentation

HCL_GenericProductSpace_d is a concrete product vector space class; it represents a vector space which is defined as a product of several existing vector spaces.

There are three ways to create such a class. There is a special constructor for the case of two factors; pointers to the two vector spaces are passed to this constructor.

   MySpace1_d X; // MySpace1_d and MySpace2_d are concrete classes
   MySpace2_d Y; // derived from HCL_VectorSpace_d
   HCL_GenericProductSpace_d Z( &X,&Y );

   // Z is now ready to use
   .
   .
   .

There is also a special constructor for the case of a product space with n identical factors:

   MySpace1_d X; // MySpace1_d is a concrete class derived
                 // from HCL_VectorSpace_d
   HCL_GenericProductSpace_d Z( &X,10 );

   // Z is now ready to use
   .
   .
   .

The general constructor just takes the number of factors; the individual factors must then be specified using the SetNext method.

   MySpace1_d X; // MySpace1_d, MySpace2_d, MySpace3_d are concrete classes
   MySpace2_d Y; // derived from HCL_VectorSpace_d
   MySpace3_d Z;
   HCL_GenericProductSpace_d W( 3 );
   W.SetNext( &X );
   W.SetNext( &Y );
   W.SetNext( &Z );

   // W is now ready to use
   .
   .
   .

See HCL_GenericProductVector_d and the base class HCL_ProductSpace_d for more details.

HCL_GenericProductSpace_d( int n )
This constructor creates a product space with n factors. The factors must be specified with the SetNext or Set methods.

HCL_GenericProductSpace_d( const HCL_VectorSpace_d & S1, const HCL_VectorSpace_d & S2 )
Provided for convenience; creates a product space with 2 factors

HCL_GenericProductSpace_d( HCL_VectorSpace_d * S1, HCL_VectorSpace_d * S2 )
Provided for convenience; creates a product space with 2 factors (copies pointers)

HCL_GenericProductSpace_d( const HCL_VectorSpace_d & S, int n )
This constructor creates a product space with n identical factors

HCL_GenericProductSpace_d( HCL_VectorSpace_d * S, int n )
This constructor creates a product space with n identical factors (copies pointers)

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

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

virtual void* GetType() const
Get type of vector space for comparison. GetType makes it possible to check that two vector spaces are of the same derived class before comparing them.

HCL_Vector_d* Member() const
Virtual constructor. Member creates a vector from the corresponding vector class. Note that this is a dynamically allocated object that must be deleted, using HCL_delete, by the calling program.

virtual HCL_VectorSpace_d* Replicate() const
Virtual copy constructor. Replicate creates a copy of this vector space. Note that this is a dynamically allocated object that must be deleted, using HCL_delete, by the calling program.

virtual int Number() const
Number returns the number of factors.

HCL_VectorSpace_d& operator)( int i ) const
The () operator returns a reference to the ith factor.

void SetNext( HCL_VectorSpace_d * S )
SetNext allows the user to specify the next factor in the product

void Set( int i, HCL_VectorSpace_d * S )
Set allows the user to specify an arbitrary factor in the product

virtual ostream& Write(ostream & str) const
Write prints out the factors in the product.


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