GenTMatrixSpace Class Reference

#include <IpGenTMatrix.hpp>

Inheritance diagram for GenTMatrixSpace:

MatrixSpace ReferencedObject

List of all members.


Detailed Description

This is the matrix space for a GenTMatrix with fixed sparsity structure.

The sparsity structure is stored here in the matrix space.

Public Member Functions

GenTMatrixMakeNewGenTMatrix () const
 Method for creating a new matrix of this specific type.
virtual MatrixMakeNew () const
 Overloaded MakeNew method for the MatrixSpace base class.
Constructors / Destructors
 GenTMatrixSpace (Index nRows, Index nCols, Index nonZeros, const Index *iRows, const Index *jCols)
 Constructor, given the number of rows and columns, as well as the number of nonzeros and the position of the nonzero elements.
 ~GenTMatrixSpace ()
 Destructor.
Methods describing Matrix structure
Index Nonzeros () const
 Number of non-zeros in the sparse matrix.
const IndexIrows () const
 Row index of each non-zero element (counting starts at 1).
const IndexJcols () const
 Column index of each non-zero element (counting starts at 1).

Friends

class GenTMatrix


Constructor & Destructor Documentation

GenTMatrixSpace ( Index  nRows,
Index  nCols,
Index  nonZeros,
const Index iRows,
const Index jCols 
)

Constructor, given the number of rows and columns, 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.

References fkinkryx::i.

~GenTMatrixSpace (  )  [inline]

Destructor.


Member Function Documentation

GenTMatrix* MakeNewGenTMatrix (  )  const [inline]

Method for creating a new matrix of this specific type.

References GenTMatrixSpace::GenTMatrix.

Referenced by GenTMatrixSpace::MakeNew().

virtual Matrix* MakeNew (  )  const [inline, virtual]

Overloaded MakeNew method for the MatrixSpace base class.

Implements MatrixSpace.

References GenTMatrixSpace::MakeNewGenTMatrix().

Index Nonzeros (  )  const [inline]

Number of non-zeros in the sparse matrix.

Referenced by GenTMatrix::Nonzeros().

const Index* Irows (  )  const [inline]

Row index of each non-zero element (counting starts at 1).

Referenced by GenTMatrix::Irows().

const Index* Jcols (  )  const [inline]

Column index of each non-zero element (counting starts at 1).

Referenced by GenTMatrix::Jcols().


Friends And Related Function Documentation

friend class GenTMatrix [friend]


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

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