|
AbstractLinAlgPack: C++ Interfaces For Vectors, Matrices And Related Linear Algebra Objects
Version of the Day
|
Base class for all polymorphic matrices. More...
#include <AbstractLinAlgPack_MatrixBase.hpp>

Classes | |
| class | IncompatibleMatrices |
| Thrown if matrices are incompatible. More... | |
Public Member Functions | |
| virtual | ~MatrixBase () |
| Virtual destructor. More... | |
Vector spaces for the columns and rows of the matrix | |
| virtual const VectorSpace & | space_cols () const =0 |
| Vector space for vectors that are compatible with the columns of the matrix. More... | |
| virtual const VectorSpace & | space_rows () const =0 |
| Vector space for vectors that are compatible with the rows of the matrix. More... | |
Dimensionality | |
| virtual size_type | rows () const |
| Return the number of rows in the matrix. More... | |
| virtual size_type | cols () const |
| Return the number of columns in the matrix. More... | |
| virtual size_type | nz () const |
| Return the number of nonzero elements in the matrix. More... | |
Base class for all polymorphic matrices.
Definition at line 53 of file AbstractLinAlgPack_MatrixBase.hpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 61 of file AbstractLinAlgPack_MatrixBase.hpp.
|
pure virtual |
Vector space for vectors that are compatible with the columns of the matrix.
Implemented in AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixOpSerial, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MultiVectorMutableCols, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::DirectSparseSolverImp::BasisMatrixImp, AbstractLinAlgPack::MatrixZero, and AbstractLinAlgPack::MatrixSymIdent.
|
pure virtual |
Vector space for vectors that are compatible with the rows of the matrix.
Implemented in AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixOpSerial, AbstractLinAlgPack::MatrixSymOp, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MultiVectorMutableCols, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::DirectSparseSolverImp::BasisMatrixImp, AbstractLinAlgPack::MatrixZero, and AbstractLinAlgPack::MatrixSymOpSerial.
|
virtual |
Return the number of rows in the matrix.
The default implementation returns space_cols().dim().
Reimplemented in AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MultiVectorMutableDense, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MultiVectorMutableCols, AbstractLinAlgPack::DirectSparseSolverImp::BasisMatrixImp, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::COOMatrixPartitionViewSubclass, AbstractLinAlgPack::MatrixZero, AbstractLinAlgPack::MatrixWithOpConcreteEncap< M >, AbstractLinAlgPack::MatrixSymIdent, and AbstractLinAlgPack::MatrixSymDiagSparse.
Definition at line 47 of file AbstractLinAlgPack_MatrixBase.cpp.
|
virtual |
Return the number of columns in the matrix.
The default implementation returns space_rows().dim().
Reimplemented in AbstractLinAlgPack::MatrixComposite, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MultiVectorMutableDense, AbstractLinAlgPack::MatrixSymOp, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MultiVectorMutableCols, AbstractLinAlgPack::DirectSparseSolverImp::BasisMatrixImp, AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::COOMatrixPartitionViewSubclass, AbstractLinAlgPack::MatrixZero, and AbstractLinAlgPack::MatrixWithOpConcreteEncap< M >.
Definition at line 52 of file AbstractLinAlgPack_MatrixBase.cpp.
|
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::MatrixComposite, AbstractLinAlgPack::MatrixSparseCOORSerial, AbstractLinAlgPack::MatrixOpSubView, AbstractLinAlgPack::MatrixPermAggr, AbstractLinAlgPack::MatrixConvertToSparseEncap, AbstractLinAlgPack::MatrixSymDiagStd, AbstractLinAlgPack::MatrixOpNonsingAggr, AbstractLinAlgPack::MatrixZero, and AbstractLinAlgPack::MatrixSymIdent.
Definition at line 57 of file AbstractLinAlgPack_MatrixBase.cpp.
1.8.6