Class for matrix space for SumSymMatrix. More...
#include <IpSumSymMatrix.hpp>
Public Member Functions | |
void | SetTermSpace (Index term_idx, const SymMatrixSpace &space) |
Use this method to set the matrix spaces for the various terms. | |
SmartPtr< const SymMatrixSpace > | GetTermSpace (Index term_idx) const |
Get the matrix space for a particular term. | |
SumSymMatrix * | MakeNewSumSymMatrix () const |
Method for creating a new matrix of this specific type. | |
virtual SymMatrix * | MakeNewSymMatrix () const |
Pure virtual method for creating a new matrix of this specific type. | |
Constructors / Destructors | |
SumSymMatrixSpace (Index ndim, Index nterms) | |
Constructor, given the dimension of the matrix and the number of terms in the sum. | |
~SumSymMatrixSpace () | |
Destructor. | |
Accessor functions | |
Index | NTerms () const |
Number of terms in the sum. | |
Public Member Functions inherited from Ipopt::SymMatrixSpace | |
virtual Matrix * | MakeNew () const |
Pure virtual method for creating a new Matrix of the corresponding type. | |
Index | Dim () const |
Accessor method for the dimension of the matrices in this matrix space. | |
SymMatrixSpace (Index dim) | |
Constructor, given the dimension (identical to the number of rows and columns). | |
virtual | ~SymMatrixSpace () |
Destructor. | |
Public Member Functions inherited from Ipopt::MatrixSpace | |
Index | NRows () const |
Accessor function for the number of rows. | |
Index | NCols () const |
Accessor function for the number of columns. | |
bool | IsMatrixFromSpace (const Matrix &matrix) const |
Method to test if a given matrix belongs to a particular matrix space. | |
MatrixSpace (Index nRows, Index nCols) | |
Constructor, given the number rows and columns of all matrices generated by this MatrixSpace. | |
virtual | ~MatrixSpace () |
Destructor. | |
Public Member Functions inherited from Ipopt::ReferencedObject | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Private Attributes | |
Index | nterms_ |
std::vector< SmartPtr< const SymMatrixSpace > > | term_spaces_ |
Class for matrix space for SumSymMatrix.
Definition at line 129 of file IpSumSymMatrix.hpp.
Constructor, given the dimension of the matrix and the number of terms in the sum.
Definition at line 137 of file IpSumSymMatrix.hpp.
|
inline |
Destructor.
Definition at line 146 of file IpSumSymMatrix.hpp.
|
inline |
Number of terms in the sum.
Definition at line 153 of file IpSumSymMatrix.hpp.
void Ipopt::SumSymMatrixSpace::SetTermSpace | ( | Index | term_idx, |
const SymMatrixSpace & | space | ||
) |
Use this method to set the matrix spaces for the various terms.
You will not be able to create a matrix until all these spaces are set.
SmartPtr< const SymMatrixSpace > Ipopt::SumSymMatrixSpace::GetTermSpace | ( | Index | term_idx | ) | const |
Get the matrix space for a particular term.
SumSymMatrix * Ipopt::SumSymMatrixSpace::MakeNewSumSymMatrix | ( | ) | const |
Method for creating a new matrix of this specific type.
Pure virtual method for creating a new matrix of this specific type.
Implements Ipopt::SymMatrixSpace.
|
private |
Definition at line 180 of file IpSumSymMatrix.hpp.
|
private |
Definition at line 182 of file IpSumSymMatrix.hpp.