CompoundSymMatrixSpace Class Reference

#include <IpCompoundSymMatrix.hpp>

Inheritance diagram for CompoundSymMatrixSpace:

SymMatrixSpace MatrixSpace ReferencedObject

List of all members.


Detailed Description

This is the matrix space for CompoundSymMatrix.

Before a CompoundSymMatrix can be created, at least one SymMatrixSpace has to be set per block row and column. Individual component SymMatrixSpace's can be set with the SetComp method.

Public Member Functions

SmartPtr< const MatrixSpaceGetCompSpace (Index irow, Index jcol) const
 Obtain the component MatrixSpace in block row irow and block column jcol.
CompoundSymMatrixMakeNewCompoundSymMatrix () const
 Method for creating a new matrix of this specific type.
virtual SymMatrixMakeNewSymMatrix () const
 Overloaded MakeNew method for the SymMatrixSpace base class.
Constructors / Destructors
 CompoundSymMatrixSpace (Index ncomp_spaces, Index total_dim)
 Constructor, given the number of blocks (same for rows and columns), as well as the total dimension of the matrix.
 ~CompoundSymMatrixSpace ()
 Destructor.
Methods for setting information about the components.
void SetBlockDim (Index irow_jcol, Index dim)
 Set the dimension dim for block row (or column) irow_jcol.
Index GetBlockDim (Index irow_jcol) const
 Get the dimension dim for block row (or column) irow_jcol.
void SetCompSpace (Index irow, Index jcol, const MatrixSpace &mat_space, bool auto_allocate=false)
 Set the component SymMatrixSpace.
Accessor methods
Index NComps_Dim () const


Constructor & Destructor Documentation

CompoundSymMatrixSpace ( Index  ncomp_spaces,
Index  total_dim 
)

Constructor, given the number of blocks (same for rows and columns), as well as the total dimension of the matrix.

~CompoundSymMatrixSpace (  )  [inline]

Destructor.


Member Function Documentation

void SetBlockDim ( Index  irow_jcol,
Index  dim 
)

Set the dimension dim for block row (or column) irow_jcol.

References DBG_ASSERT.

Index GetBlockDim ( Index  irow_jcol  )  const

Get the dimension dim for block row (or column) irow_jcol.

References DBG_ASSERT.

void SetCompSpace ( Index  irow,
Index  jcol,
const MatrixSpace mat_space,
bool  auto_allocate = false 
)

Set the component SymMatrixSpace.

If auto_allocate is true, then a new CompoundSymMatrix created later with MakeNew will have this component automatically created with the SymMatrix's MakeNew. Otherwise, the corresponding component will be NULL and has to be set with the SetComp methods of the CompoundSymMatrix.

References DBG_ASSERT, Ipopt::IsNull(), MatrixSpace::NCols(), and MatrixSpace::NRows().

SmartPtr<const MatrixSpace> GetCompSpace ( Index  irow,
Index  jcol 
) const [inline]

Index NComps_Dim (  )  const [inline]

CompoundSymMatrix * MakeNewCompoundSymMatrix (  )  const

virtual SymMatrix* MakeNewSymMatrix (  )  const [inline, virtual]

Overloaded MakeNew method for the SymMatrixSpace base class.

Implements SymMatrixSpace.

References CompoundSymMatrixSpace::MakeNewCompoundSymMatrix().


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

Generated on Fri Sep 26 07:44:25 2008 for SimTKcore by  doxygen 1.5.6