CubbyFlow::MatrixCSRVectorMul< T, VE > Class Template Reference
Vector expression for CSR matrix-vector multiplication. More...
#include <Core/Matrix/MatrixCSR.h>
Inheritance diagram for CubbyFlow::MatrixCSRVectorMul< T, VE >:
Public Member Functions | |
MatrixCSRVectorMul (const MatrixCSR< T > &m, const VE &v) | |
MatrixCSRVectorMul (const MatrixCSRVectorMul &) | |
size_t | size () const |
Size of the vector. More... | |
T | operator[] (size_t i) const |
Returns vector element at i. More... | |
Public Member Functions inherited from CubbyFlow::VectorExpression< T, MatrixCSRVectorMul< T, VE > > | |
size_t | size () const |
Size of the vector. More... | |
const MatrixCSRVectorMul< T, VE > & | operator() () const |
Returns actual implementation (the subclass). More... | |
Detailed Description
template<typename T, typename VE>
class CubbyFlow::MatrixCSRVectorMul< T, VE >
Vector expression for CSR matrix-vector multiplication.
This vector expression represents a CSR matrix-vector operation that takes one CSR input matrix expression and one vector expression.
- Template Parameters
-
T Element value type. VE Vector expression.
Constructor & Destructor Documentation
◆ MatrixCSRVectorMul() [1/2]
template<typename T , typename VE >
CubbyFlow::MatrixCSRVectorMul< T, VE >::MatrixCSRVectorMul | ( | const MatrixCSR< T > & | m, |
const VE & | v | ||
) |
◆ MatrixCSRVectorMul() [2/2]
template<typename T , typename VE >
CubbyFlow::MatrixCSRVectorMul< T, VE >::MatrixCSRVectorMul | ( | const MatrixCSRVectorMul< T, VE > & | other | ) |
Member Function Documentation
◆ operator[]()
template<typename T , typename VE >
T CubbyFlow::MatrixCSRVectorMul< T, VE >::operator[] | ( | size_t | i | ) | const |
Returns vector element at i.
◆ size()
template<typename T , typename VE >
size_t CubbyFlow::MatrixCSRVectorMul< T, VE >::size | ( | ) | const |
Size of the vector.
The documentation for this class was generated from the following files:
- Core/Matrix/MatrixCSR.h
- Core/Matrix/MatrixCSR-Impl.h