Ipopt
3.11.9
|
This is the matrix space for a SymTMatrix with fixed sparsity structure. More...
#include <IpSymTMatrix.hpp>
Public Member Functions | |
Constructors / Destructors | |
SymTMatrixSpace (Index dim, Index nonZeros, const Index *iRows, const Index *jCols) | |
Constructor, given the number of rows and columns (both as dim), as well as the number of nonzeros and the position of the nonzero elements. More... | |
~SymTMatrixSpace () | |
Destructor. More... | |
virtual SymMatrix * | MakeNewSymMatrix () const |
Overloaded MakeNew method for the sYMMatrixSpace base class. More... | |
SymTMatrix * | MakeNewSymTMatrix () const |
Method for creating a new matrix of this specific type. More... | |
Methods describing Matrix structure | |
Index | Nonzeros () const |
Number of non-zeros in the sparse matrix. More... | |
const Index * | Irows () const |
Row index of each non-zero element. More... | |
const Index * | Jcols () const |
Column index of each non-zero element. More... | |
![]() | |
SymMatrixSpace (Index dim) | |
Constructor, given the dimension (identical to the number of rows and columns). More... | |
virtual | ~SymMatrixSpace () |
Destructor. More... | |
virtual Matrix * | MakeNew () const |
Overloaded MakeNew method for the MatrixSpace base class. More... | |
Index | Dim () const |
Accessor method for the dimension of the matrices in this matrix space. More... | |
![]() | |
MatrixSpace (Index nRows, Index nCols) | |
Constructor, given the number rows and columns of all matrices generated by this MatrixSpace. More... | |
virtual | ~MatrixSpace () |
Destructor. 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... | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Methods called by SymTMatrix for memory management | |
const Index | nonZeros_ |
Index * | iRows_ |
Index * | jCols_ |
class | SymTMatrix |
Number * | AllocateInternalStorage () const |
Allocate internal storage for the SymTMatrix values. More... | |
void | FreeInternalStorage (Number *values) const |
Deallocate internal storage for the SymTMatrix values. More... | |
This is the matrix space for a SymTMatrix with fixed sparsity structure.
The sparsity structure is stored here in the matrix space.
Definition at line 161 of file IpSymTMatrix.hpp.
Ipopt::SymTMatrixSpace::SymTMatrixSpace | ( | Index | dim, |
Index | nonZeros, | ||
const Index * | iRows, | ||
const Index * | jCols | ||
) |
Constructor, given the number of rows and columns (both as dim), as well as the number of nonzeros and the position of the nonzero elements.
Note that the counting of the nonzeros starts a 1, i.e., iRows[i]==1 and jCols[i]==1 refers to the first element in the first row. This is in accordance with the HSL data structure. Off-diagonal elements are stored only once.
Ipopt::SymTMatrixSpace::~SymTMatrixSpace | ( | ) |
Destructor.
|
inlinevirtual |
Overloaded MakeNew method for the sYMMatrixSpace base class.
Implements Ipopt::SymMatrixSpace.
Definition at line 183 of file IpSymTMatrix.hpp.
|
inline |
Method for creating a new matrix of this specific type.
Definition at line 189 of file IpSymTMatrix.hpp.
|
inline |
Number of non-zeros in the sparse matrix.
Definition at line 197 of file IpSymTMatrix.hpp.
|
inline |
Row index of each non-zero element.
Definition at line 203 of file IpSymTMatrix.hpp.
|
inline |
Column index of each non-zero element.
Definition at line 209 of file IpSymTMatrix.hpp.
|
private |
Allocate internal storage for the SymTMatrix values.
|
private |
Deallocate internal storage for the SymTMatrix values.
|
friend |
Definition at line 229 of file IpSymTMatrix.hpp.
|
private |
Definition at line 225 of file IpSymTMatrix.hpp.
|
private |
Definition at line 226 of file IpSymTMatrix.hpp.
|
private |
Definition at line 227 of file IpSymTMatrix.hpp.