#include <IpVector.hpp>
For each Vector implementation, a corresponding VectorSpace has to be implemented. A VectorSpace is able to create new Vectors of a specific type. The VectorSpace should also store information that is common to all Vectors of that type. For example, the dimension of a Vector is stored in the VectorSpace base class.
Public Member Functions | |
virtual Vector * | MakeNew () const =0 |
Pure virtual method for creating a new Vector of the corresponding type. | |
Index | Dim () const |
Accessor function for the dimension of the vectors of this type. | |
Constructors/Destructors | |
VectorSpace (Index dim) | |
Constructor, given the dimension of all vectors generated by this VectorSpace. | |
virtual | ~VectorSpace () |
Destructor. |
VectorSpace | ( | Index | dim | ) | [inline] |
Constructor, given the dimension of all vectors generated by this VectorSpace.
virtual ~VectorSpace | ( | ) | [inline, virtual] |
Destructor.
virtual Vector* MakeNew | ( | ) | const [pure virtual] |
Pure virtual method for creating a new Vector of the corresponding type.
Implemented in CompoundVectorSpace, DenseVectorSpace, and IteratesVectorSpace.
Referenced by NLPScalingObject::apply_vector_scaling_d_LU_NonConst(), NLPScalingObject::apply_vector_scaling_x_LU_NonConst(), and NLPScalingObject::unapply_vector_scaling_d_LU_NonConst().
Index Dim | ( | ) | const [inline] |
Accessor function for the dimension of the vectors of this type.
Referenced by DenseVectorSpace::AllocateInternalStorage().