Ipopt Documentation  
 
Loading...
Searching...
No Matches
Ipopt::MatrixSpace Class Referenceabstract

MatrixSpace base class, corresponding to the Matrix base class. More...

#include <IpMatrix.hpp>

+ Inheritance diagram for Ipopt::MatrixSpace:

Public Member Functions

virtual MatrixMakeNew () const =0
 Pure virtual method for creating a new Matrix of the corresponding type.
 
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.
 
Constructors/Destructors
 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 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.
 
 MatrixSpace (const MatrixSpace &)
 Copy constructor.
 
MatrixSpaceoperator= (const MatrixSpace &)
 Default Assignment Operator.
 

Private Attributes

const Index nRows_
 Number of rows for all matrices of this type.
 
const Index nCols_
 Number of columns for all matrices of this type.
 

Detailed Description

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 326 of file IpMatrix.hpp.

Constructor & Destructor Documentation

◆ MatrixSpace() [1/3]

Ipopt::MatrixSpace::MatrixSpace ( Index  nRows,
Index  nCols 
)
inline

Constructor, given the number rows and columns of all matrices generated by this MatrixSpace.

Definition at line 334 of file IpMatrix.hpp.

◆ ~MatrixSpace()

virtual Ipopt::MatrixSpace::~MatrixSpace ( )
inlinevirtual

Destructor.

Definition at line 342 of file IpMatrix.hpp.

◆ MatrixSpace() [2/3]

Ipopt::MatrixSpace::MatrixSpace ( )
private

Default constructor.

◆ MatrixSpace() [3/3]

Ipopt::MatrixSpace::MatrixSpace ( const MatrixSpace )
private

Copy constructor.

Member Function Documentation

◆ MakeNew()

◆ NRows()

Index Ipopt::MatrixSpace::NRows ( ) const
inline

Accessor function for the number of rows.

Definition at line 350 of file IpMatrix.hpp.

◆ NCols()

Index Ipopt::MatrixSpace::NCols ( ) const
inline

Accessor function for the number of columns.

Definition at line 356 of file IpMatrix.hpp.

◆ IsMatrixFromSpace()

bool Ipopt::MatrixSpace::IsMatrixFromSpace ( const Matrix matrix) const
inline

Method to test if a given matrix belongs to a particular matrix space.

Definition at line 362 of file IpMatrix.hpp.

◆ operator=()

MatrixSpace & Ipopt::MatrixSpace::operator= ( const MatrixSpace )
private

Default Assignment Operator.

Member Data Documentation

◆ nRows_

const Index Ipopt::MatrixSpace::nRows_
private

Number of rows for all matrices of this type.

Definition at line 394 of file IpMatrix.hpp.

◆ nCols_

const Index Ipopt::MatrixSpace::nCols_
private

Number of columns for all matrices of this type.

Definition at line 397 of file IpMatrix.hpp.


The documentation for this class was generated from the following file: