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
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. |
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.
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