|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Sparse matrix with generic domains. More...
#include <memory>#include <type_traits>#include <utility>#include <al-vector.H>#include <ah-errors.H>Go to the source code of this file.
Classes | |
| class | Aleph::Matrix< Trow, Tcol, NumType > |
| Sparse matrix with generic row and column domains. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Functions | |
| template<typename Trow , typename Tcol , typename NumType > requires AlMultiplicativeNumber<NumType> | |
| Matrix< Trow, Tcol, NumType > | Aleph::operator* (const NumType &scalar, const Matrix< Trow, Tcol, NumType > &m) |
| Scalar-matrix multiplication (scalar * matrix). | |
| template<typename Trow , typename Tcol , typename NumType > requires AlAdditiveNumber<NumType> | |
| and AlMultiplicativeNumber< NumType > Vector< Tcol, NumType > | Aleph::operator* (const Vector< Trow, NumType > &vec, const Matrix< Trow, Tcol, NumType > &m) |
| Vector-matrix multiplication (vector * matrix). | |
| template<typename Trow , typename Tcol , typename NumType > requires AlOrderedDomainKey<Trow> | |
| and AlOrderedDomainKey< Tcol > and AlStreamable< Trow > and AlStreamable< Tcol > and AlStreamable< NumType > std::ostream & | Aleph::operator<< (std::ostream &s, const Matrix< Trow, Tcol, NumType > &m) |
| Stream output operator for Matrix. | |
| template<typename Trow , typename Tcol , typename NumType = double> requires AlMultiplicativeNumber<NumType> | |
| Matrix< Trow, Tcol, NumType > | Aleph::outer_product (const Vector< Trow, NumType > &v1, const Vector< Tcol, NumType > &v2) |
| Compute the outer product of two vectors. | |
Sparse matrix with generic domains.
Provides Matrix class for sparse matrices where rows and columns can have arbitrary domains. Efficient for matrices with many zero elements using hash-based storage.
Definition in file al-matrix.H.