#include <IpCompoundVector.hpp>
Before a CompoundVector can be created, all components of this CompoundVectorSpace have to be set. When calling the constructor, the number of component has to be specified. The individual VectorSpaces can be set with the SetComp method.
Public Member Functions | |
virtual void | SetCompSpace (Index icomp, const VectorSpace &vec_space) |
Method for setting the individual component VectorSpaces. | |
SmartPtr< const VectorSpace > | GetCompSpace (Index icomp) const |
Method for obtaining an individual component VectorSpace. | |
Index | NCompSpaces () const |
Accessor method to obtain the number of components. | |
virtual CompoundVector * | MakeNewCompoundVector (bool create_new=true) const |
Method for creating a new vector of this specific type. | |
virtual Vector * | MakeNew () const |
Overloaded MakeNew method for the VectorSpace base class. | |
Constructors/Destructors. | |
CompoundVectorSpace (Index ncomp_spaces, Index total_dim) | |
Constructor, has to be given the number of components and the total dimension of all components combined. | |
~CompoundVectorSpace () | |
Destructor. |
CompoundVectorSpace | ( | Index | ncomp_spaces, | |
Index | total_dim | |||
) |
Constructor, has to be given the number of components and the total dimension of all components combined.
~CompoundVectorSpace | ( | ) | [inline] |
Destructor.
void SetCompSpace | ( | Index | icomp, | |
const VectorSpace & | vec_space | |||
) | [virtual] |
Method for setting the individual component VectorSpaces.
icomp | Number of the component to be set |
vec_space | VectorSpace for component icomp |
Reimplemented in IteratesVectorSpace.
References DBG_ASSERT, and Ipopt::IsNull().
Referenced by IteratesVectorSpace::IteratesVectorSpace().
SmartPtr< const VectorSpace > GetCompSpace | ( | Index | icomp | ) | const |
Method for obtaining an individual component VectorSpace.
References DBG_ASSERT.
Referenced by CompoundVector::CompoundVector(), IteratesVector::create_new_s(), IteratesVector::create_new_v_L(), IteratesVector::create_new_v_U(), IteratesVector::create_new_x(), IteratesVector::create_new_y_c(), IteratesVector::create_new_y_d(), IteratesVector::create_new_z_L(), and IteratesVector::create_new_z_U().
Index NCompSpaces | ( | ) | const [inline] |
virtual CompoundVector* MakeNewCompoundVector | ( | bool | create_new = true |
) | const [inline, virtual] |
Method for creating a new vector of this specific type.
Reimplemented in IteratesVectorSpace.
Referenced by CompoundVectorSpace::MakeNew().
virtual Vector* MakeNew | ( | ) | const [inline, virtual] |
Overloaded MakeNew method for the VectorSpace base class.
Implements VectorSpace.
Reimplemented in IteratesVectorSpace.
References CompoundVectorSpace::MakeNewCompoundVector().