MatrixCharacter Class Reference
[Matrix Characteristics]

A MatrixCharacter is a set containing a value for each of the matrix characteristics except element type, which is part of the templatized declaration of a Matrix, Vector, or RowVector handle. More...

#include <MatrixCharacteristics.h>

Inheritance diagram for MatrixCharacter:
LapackFull RowVector Vector

List of all members.

Classes

class  LapackFull
 Predefined MatrixCharacter for an ordinary Lapack-style full matrix of a particular dimension m x n (nrows X ncols). More...
class  Mask
 This class collects masks of each characteristic type for representing sets of accceptable characteristics. More...
class  RowVector
 Predefined MatrixCharacter for an ordinary row vector of a particular size. More...
class  Vector
 Predefined MatrixCharacter for an ordinary column vector of a particular size. More...

Public Member Functions

 MatrixCharacter ()
 Default constructor sets lengths to zero and the other characteristics to "none specified".
MatrixCharactersetToNone ()
 Restore this MatrixCharacter to its default-constructed state of "none".
int nrow () const
int ncol () const
std::pair< int, int > getSize () const
ptrdiff_t nelt () const
int getLowerBandwidth () const
int getUpperBandwidth () const
std::pair< int, int > getBandwidth () const
const MatrixStructuregetStructure () const
const MatrixStoragegetStorage () const
const MatrixOutlinegetOutline () const
const MatrixConditiongetCondition () const
MatrixStructureupdStructure ()
MatrixStorageupdStorage ()
MatrixOutlineupdOutline ()
MatrixConditionupdCondition ()
MatrixCharactersetStructure (const MatrixStructure &sa)
MatrixCharactersetStorage (const MatrixStorage &sa)
MatrixCharactersetOutline (const MatrixOutline &oa)
MatrixCharactersetCondition (const MatrixCondition &ca)
MatrixCharactersetActualSize (int m, int n)
 Set the actual size and update the outline to match.
MatrixCharactersetActualNumRows (int m)
MatrixCharactersetActualNumCols (int n)
MatrixCharactersetBandwidth (int lb, int ub)
MatrixCharactersetLowerBandwidth (int lb)
MatrixCharactersetUpperBandwidth (int ub)

Protected Member Functions

 MatrixCharacter (int m, int n, int lb, int ub, MatrixStructure structure, MatrixStorage storage, MatrixCondition condition)

Protected Attributes

int nr
 actual number of rows
int nc
 actual number of columns
int lband
 actual lower bandwidth, if banded
int uband
 actual upper bandwidth, if banded
MatrixStructure structure
MatrixStorage storage
MatrixOutline outline
MatrixCondition condition

Detailed Description

A MatrixCharacter is a set containing a value for each of the matrix characteristics except element type, which is part of the templatized declaration of a Matrix, Vector, or RowVector handle.

MatrixCharacters are used both as the handle "commitment", setting restrictions on what kinds of matrices a handle can reference, and as the "facts on the ground" current character of the matrix being referenced. The current character must always satisfy the character commitment.


Constructor & Destructor Documentation

MatrixCharacter (  )  [inline]

Default constructor sets lengths to zero and the other characteristics to "none specified".

MatrixCharacter ( int  m,
int  n,
int  lb,
int  ub,
MatrixStructure  structure,
MatrixStorage  storage,
MatrixCondition  condition 
) [inline, protected]

Member Function Documentation

std::pair<int,int> getBandwidth (  )  const [inline]
const MatrixCondition& getCondition (  )  const [inline]

Referenced by Mask::isSatisfiedBy().

int getLowerBandwidth (  )  const [inline]
const MatrixOutline& getOutline (  )  const [inline]

Referenced by Mask::isSatisfiedBy().

std::pair<int,int> getSize (  )  const [inline]
const MatrixStorage& getStorage (  )  const [inline]

Referenced by Mask::isSatisfiedBy().

const MatrixStructure& getStructure (  )  const [inline]

Referenced by Mask::isSatisfiedBy().

int getUpperBandwidth (  )  const [inline]
int ncol (  )  const [inline]
ptrdiff_t nelt (  )  const [inline]
int nrow (  )  const [inline]
MatrixCharacter& setActualNumCols ( int  n  )  [inline]
MatrixCharacter& setActualNumRows ( int  m  )  [inline]
MatrixCharacter& setActualSize ( int  m,
int  n 
) [inline]

Set the actual size and update the outline to match.

References MatrixOutline::calcFromSize().

MatrixCharacter& setBandwidth ( int  lb,
int  ub 
) [inline]
MatrixCharacter& setCondition ( const MatrixCondition ca  )  [inline]
MatrixCharacter& setLowerBandwidth ( int  lb  )  [inline]
MatrixCharacter& setOutline ( const MatrixOutline oa  )  [inline]
MatrixCharacter& setStorage ( const MatrixStorage sa  )  [inline]
MatrixCharacter& setStructure ( const MatrixStructure sa  )  [inline]
MatrixCharacter& setToNone (  )  [inline]

Restore this MatrixCharacter to its default-constructed state of "none".

References MatrixCharacter::setToNone().

Referenced by MatrixCharacter::setToNone().

MatrixCharacter& setUpperBandwidth ( int  ub  )  [inline]
MatrixCondition& updCondition (  )  [inline]
MatrixOutline& updOutline (  )  [inline]
MatrixStorage& updStorage (  )  [inline]
MatrixStructure& updStructure (  )  [inline]

Member Data Documentation

int lband [protected]

actual lower bandwidth, if banded

Referenced by Mask::isSatisfiedBy().

int nc [protected]

actual number of columns

Referenced by Mask::isSatisfiedBy().

int nr [protected]

actual number of rows

Referenced by Mask::isSatisfiedBy().

MatrixOutline outline [protected]
MatrixStorage storage [protected]
int uband [protected]

actual upper bandwidth, if banded

Referenced by Mask::isSatisfiedBy().


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

Generated on Wed Dec 30 11:05:26 2009 for SimTKcore by  doxygen 1.6.1