AbstractLinAlgPack::MatrixBase Class Reference

Base class for all polymorphic matrices. More...

#include <AbstractLinAlgPack_MatrixBase.hpp>

Inheritance diagram for AbstractLinAlgPack::MatrixBase:

Inheritance graph
[legend]
List of all members.

Vector spaces for the columns and rows of the matrix

virtual const VectorSpacespace_cols () const =0
 Vector space for vectors that are compatible with the columns of the matrix.
virtual const VectorSpacespace_rows () const =0
 Vector space for vectors that are compatible with the rows of the matrix.

Dimensionality

virtual size_type rows () const
 Return the number of rows in the matrix.
virtual size_type cols () const
 Return the number of columns in the matrix.
virtual size_type nz () const
 Return the number of nonzero elements in the matrix.

Public Member Functions

virtual ~MatrixBase ()
 Virtual destructor.

Classes

class  IncompatibleMatrices
 Thrown if matrices are incompatible. More...

Detailed Description

Base class for all polymorphic matrices.

Definition at line 40 of file AbstractLinAlgPack_MatrixBase.hpp.


Constructor & Destructor Documentation

virtual AbstractLinAlgPack::MatrixBase::~MatrixBase (  )  [inline, virtual]

Virtual destructor.

Definition at line 48 of file AbstractLinAlgPack_MatrixBase.hpp.


Member Function Documentation

virtual const VectorSpace& AbstractLinAlgPack::MatrixBase::space_cols (  )  const [pure virtual]

Vector space for vectors that are compatible with the columns of the matrix.

Implemented in AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixSymIdent, AbstractLinAlgPack::MatrixZero, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MatrixOpSerial, and AbstractLinAlgPack::MultiVectorMutableCols.

virtual const VectorSpace& AbstractLinAlgPack::MatrixBase::space_rows (  )  const [pure virtual]

Vector space for vectors that are compatible with the rows of the matrix.

Implemented in AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixSymOp, AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixZero, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MatrixOpSerial, AbstractLinAlgPack::MatrixSymOpSerial, and AbstractLinAlgPack::MultiVectorMutableCols.

size_type AbstractLinAlgPack::MatrixBase::rows (  )  const [virtual]

Return the number of rows in the matrix.

The default implementation returns space_cols().dim().

Reimplemented in AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixSymIdent, AbstractLinAlgPack::MatrixZero, AbstractLinAlgPack::COOMatrixPartitionViewSubclass, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixWithOpConcreteEncap< M >, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MatrixSymDiagSparse, AbstractLinAlgPack::MultiVectorMutableCols, and AbstractLinAlgPack::MultiVectorMutableDense.

Definition at line 34 of file AbstractLinAlgPack_MatrixBase.cpp.

size_type AbstractLinAlgPack::MatrixBase::cols (  )  const [virtual]

Return the number of columns in the matrix.

The default implementation returns space_rows().dim().

Reimplemented in AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixSymOp, AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixZero, AbstractLinAlgPack::COOMatrixPartitionViewSubclass, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixWithOpConcreteEncap< M >, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MultiVectorMutableCols, and AbstractLinAlgPack::MultiVectorMutableDense.

Definition at line 39 of file AbstractLinAlgPack_MatrixBase.cpp.

size_type AbstractLinAlgPack::MatrixBase::nz (  )  const [virtual]

Return the number of nonzero elements in the matrix.

The default is to just assume it is dense and to return rows() * cols().

Reimplemented in AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixSymIdent, AbstractLinAlgPack::MatrixZero, AbstractLinAlgPack::MatrixSparseCOORSerial, and AbstractLinAlgPack::MatrixConvertToSparseEncap.

Definition at line 44 of file AbstractLinAlgPack_MatrixBase.cpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:31:43 2010 for AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects by  doxygen 1.4.7