Ipopt
3.12.12
|
MatrixSpace base class, corresponding to the Matrix base class. More...
#include <IpMatrix.hpp>
Public Member Functions | |
virtual Matrix * | MakeNew () const =0 |
Pure virtual method for creating a new Matrix of the corresponding type. More... | |
Index | NRows () const |
Accessor function for the number of rows. More... | |
Index | NCols () const |
Accessor function for the number of columns. More... | |
bool | IsMatrixFromSpace (const Matrix &matrix) const |
Method to test if a given matrix belongs to a particular matrix space. More... | |
Constructors/Destructors | |
MatrixSpace (Index nRows, Index nCols) | |
Constructor, given the number rows and columns of all matrices generated by this MatrixSpace. More... | |
virtual | ~MatrixSpace () |
Destructor. More... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Private Member Functions | |
Default Compiler Generated Methods | |
(Hidden to avoid implicit creation/calling). These methods are not implemented and we do not want the compiler to implement them for us, so we declare them private and do not define them. This ensures that they will not be implicitly created/called. | |
MatrixSpace () | |
default constructor More... | |
MatrixSpace (const MatrixSpace &) | |
Copy constructor. More... | |
MatrixSpace & | operator= (const MatrixSpace &) |
Overloaded Equals Operator. More... | |
Private Attributes | |
const Index | nRows_ |
Number of rows for all matrices of this type. More... | |
const Index | nCols_ |
Number of columns for all matrices of this type. More... | |
MatrixSpace base class, corresponding to the Matrix base class.
For each Matrix implementation, a corresponding MatrixSpace has to be implemented. A MatrixSpace is able to create new Matrices of a specific type. The MatrixSpace should also store information that is common to all Matrices of that type. For example, the dimensions of a Matrix is stored in the MatrixSpace base class.
Definition at line 239 of file IpMatrix.hpp.
Constructor, given the number rows and columns of all matrices generated by this MatrixSpace.
Definition at line 247 of file IpMatrix.hpp.
|
inlinevirtual |
Destructor.
Definition at line 254 of file IpMatrix.hpp.
|
private |
default constructor
|
private |
Copy constructor.
|
pure virtual |
Pure virtual method for creating a new Matrix of the corresponding type.
Implemented in Ipopt::CompoundMatrixSpace, Ipopt::DenseGenMatrixSpace, Ipopt::MultiVectorMatrixSpace, Ipopt::GenTMatrixSpace, Ipopt::ExpansionMatrixSpace, Ipopt::ScaledMatrixSpace, Ipopt::SymScaledMatrixSpace, Ipopt::ExpandedMultiVectorMatrixSpace, Ipopt::SumMatrixSpace, Ipopt::TransposeMatrixSpace, Ipopt::SymMatrixSpace, Ipopt::ZeroMatrixSpace, and Ipopt::ZeroSymMatrixSpace.
|
inline |
Accessor function for the number of rows.
Definition at line 264 of file IpMatrix.hpp.
|
inline |
Accessor function for the number of columns.
Definition at line 269 of file IpMatrix.hpp.
|
inline |
Method to test if a given matrix belongs to a particular matrix space.
Definition at line 277 of file IpMatrix.hpp.
|
private |
Overloaded Equals Operator.
|
private |
Number of rows for all matrices of this type.
Definition at line 302 of file IpMatrix.hpp.
|
private |
Number of columns for all matrices of this type.
Definition at line 304 of file IpMatrix.hpp.