Algorithms for sparse and dynamic containers.
More...
|
template<typename ExecSpace , typename Matrix , typename Vector > |
void | Morpheus::multiply (const Matrix &A, const Vector &x, Vector &y, const bool init) |
| Computes the matrix vector product y = Ax. More...
|
|
template<typename ExecSpace , typename Matrix , typename Vector > |
void | Morpheus::multiply (const Matrix &A, const Vector &x, Vector &y) |
| Computes the matrix vector product y = Ax. More...
|
|
Algorithms for sparse and dynamic containers.
◆ multiply() [1/2]
template<typename ExecSpace , typename Matrix , typename Vector >
void Morpheus::multiply |
( |
const Matrix & |
A, |
|
|
const Vector & |
x, |
|
|
Vector & |
y |
|
) |
| |
|
inline |
Computes the matrix vector product y = Ax.
- Template Parameters
-
ExecSpace | ExecSpace Execution space to run the algorithm |
Matrix | The type of the system matrix |
Vector | The type of the vectors |
- Parameters
-
A | The known system matrix |
x | The known vector |
y | The vector that contains the result Ax |
- Note
- This routine initializes the vector y to zero by default.
◆ multiply() [2/2]
template<typename ExecSpace , typename Matrix , typename Vector >
void Morpheus::multiply |
( |
const Matrix & |
A, |
|
|
const Vector & |
x, |
|
|
Vector & |
y, |
|
|
const bool |
init |
|
) |
| |
|
inline |
Computes the matrix vector product y = Ax.
- Template Parameters
-
ExecSpace | Execution space to run the algorithm |
Matrix | The type of the system matrix |
Vector | The type of the vectors |
- Parameters
-
A | The known system matrix |
x | The known vector |
y | The vector that contains the result Ax |
init | Whether to initialize y to zero. |