Ipopt::ExpansionMatrixSpace Class Reference

This is the matrix space for ExpansionMatrix. More...

#include <IpExpansionMatrix.hpp>

Inheritance diagram for Ipopt::ExpansionMatrixSpace:
Inheritance graph
[legend]
Collaboration diagram for Ipopt::ExpansionMatrixSpace:
Collaboration graph
[legend]

List of all members.

Public Member Functions

ExpansionMatrixMakeNewExpansionMatrix () const
 Method for creating a new matrix of this specific type.
virtual MatrixMakeNew () const
 Overloaded MakeNew method for the MatrixSpace base class.
const IndexExpandedPosIndices () const
 Accessor Method to obtain the Index array (of length NSmallVec=NCols()) that stores the mapping from the small vector to the large vector.
const IndexCompressedPosIndices () const
 Accessor Method to obtain the Index array (of length NLargeVec=NRows()) that stores the mapping from the large vector to the small vector.
Constructors / Destructors



 ExpansionMatrixSpace (Index NLargeVec, Index NSmallVec, const Index *ExpPos, const int offset=0)
 Constructor, given the list of elements of the large vector (of size NLargeVec) to be filtered into the small vector (of size NSmallVec).
 ~ExpansionMatrixSpace ()
 Destructor.

Private Attributes

Indexexpanded_pos_
Indexcompressed_pos_

Detailed Description

This is the matrix space for ExpansionMatrix.

Definition at line 115 of file IpExpansionMatrix.hpp.


Constructor & Destructor Documentation

Ipopt::ExpansionMatrixSpace::ExpansionMatrixSpace ( Index  NLargeVec,
Index  NSmallVec,
const Index ExpPos,
const int  offset = 0 
)

Constructor, given the list of elements of the large vector (of size NLargeVec) to be filtered into the small vector (of size NSmallVec).

For each i=0..NSmallVec-1 the i-th element of the small vector will be put into the ExpPos[i] position of the large vector. The position counting in the vector is assumed to start at 0 (C-like array notation).

Ipopt::ExpansionMatrixSpace::~ExpansionMatrixSpace (  )  [inline]

Destructor.

Definition at line 133 of file IpExpansionMatrix.hpp.


Member Function Documentation

ExpansionMatrix* Ipopt::ExpansionMatrixSpace::MakeNewExpansionMatrix (  )  const [inline]

Method for creating a new matrix of this specific type.

Definition at line 141 of file IpExpansionMatrix.hpp.

virtual Matrix* Ipopt::ExpansionMatrixSpace::MakeNew (  )  const [inline, virtual]

Overloaded MakeNew method for the MatrixSpace base class.

Implements Ipopt::MatrixSpace.

Definition at line 148 of file IpExpansionMatrix.hpp.

const Index* Ipopt::ExpansionMatrixSpace::ExpandedPosIndices (  )  const [inline]

Accessor Method to obtain the Index array (of length NSmallVec=NCols()) that stores the mapping from the small vector to the large vector.

For each element i=0,..,NSmallVec in the small vector, ExpandedPosIndices()[i] give the corresponding index in the large vector.

Definition at line 159 of file IpExpansionMatrix.hpp.

const Index* Ipopt::ExpansionMatrixSpace::CompressedPosIndices (  )  const [inline]

Accessor Method to obtain the Index array (of length NLargeVec=NRows()) that stores the mapping from the large vector to the small vector.

For each element i=0,..,NLargeVec in the large vector, CompressedPosIndices()[i] gives the corresponding index in the small vector, unless CompressedPosIndices()[i] is negative.

Definition at line 171 of file IpExpansionMatrix.hpp.


Member Data Documentation

Definition at line 177 of file IpExpansionMatrix.hpp.

Definition at line 178 of file IpExpansionMatrix.hpp.


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

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1