42 #ifndef ABSTRACT_LINALG_PACK_MATRIX_BASE_H
43 #define ABSTRACT_LINALG_PACK_MATRIX_BASE_H
47 #include "AbstractLinAlgPack_Types.hpp"
49 namespace AbstractLinAlgPack {
81 virtual size_type
rows()
const;
87 virtual size_type
cols()
const;
94 virtual size_type
nz()
const;
102 #endif // ABSTRACT_LINALG_PACK_MATRIX_BASE_H
virtual size_type nz() const
Return the number of nonzero elements in the matrix.
Base class for all polymorphic matrices.
virtual const VectorSpace & space_rows() const =0
Vector space for vectors that are compatible with the rows of the matrix.
virtual ~MatrixBase()
Virtual destructor.
Thrown if matrices are incompatible.
virtual size_type cols() const
Return the number of columns in the matrix.
Abstract interface for objects that represent a space for mutable coordinate vectors.
virtual const VectorSpace & space_cols() const =0
Vector space for vectors that are compatible with the columns of the matrix.
virtual size_type rows() const
Return the number of rows in the matrix.