MatrixSpace Class Reference

#include <IpMatrix.hpp>

Inheritance diagram for MatrixSpace:

ReferencedObject CompoundMatrixSpace DenseGenMatrixSpace ExpansionMatrixSpace GenTMatrixSpace MultiVectorMatrixSpace ScaledMatrixSpace SumMatrixSpace SymMatrixSpace ZeroMatrixSpace

List of all members.


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.

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.


Constructor & Destructor Documentation

MatrixSpace ( Index  nRows,
Index  nCols 
)

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

~MatrixSpace (  )  [virtual]

Destructor.


Member Function Documentation

virtual Matrix* MakeNew (  )  const [pure virtual]

Index NRows (  )  const [inline]

Index NCols (  )  const [inline]

bool IsMatrixFromSpace ( const Matrix matrix  )  const

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

References Matrix::OwnerSpace().


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