Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
al-matrix.H File Reference

Sparse matrix with generic domains. More...

#include <al-vector.H>
#include <ah-errors.H>
Include dependency graph for al-matrix.H:
This graph shows which files directly or indirectly include this file:

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 >
Matrix< Trow, Tcol, NumTypeAleph::operator* (const NumType &scalar, const Matrix< Trow, Tcol, NumType > &m)
 Scalar-matrix multiplication (scalar * matrix).
 
template<typename Trow , typename Tcol , typename NumType >
Vector< Tcol, NumTypeAleph::operator* (const Vector< Trow, NumType > &vec, const Matrix< Trow, Tcol, NumType > &m)
 Vector-matrix multiplication (vector * matrix).
 
template<typename Trow , typename Tcol , typename 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>
Matrix< Trow, Tcol, NumTypeAleph::outer_product (const Vector< Trow, NumType > &v1, const Vector< Tcol, NumType > &v2)
 Compute the outer product of two vectors.
 

Detailed Description

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.

Author
Leandro Rabindranath León

Definition in file al-matrix.H.