Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Functions
Sparse Algorithms

Algorithms for sparse and dynamic containers. More...

Collaboration diagram for Sparse Algorithms:

Functions

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...
 

Detailed Description

Algorithms for sparse and dynamic containers.

Function Documentation

◆ 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
ExecSpaceExecSpace Execution space to run the algorithm
MatrixThe type of the system matrix
VectorThe type of the vectors
Parameters
AThe known system matrix
xThe known vector
yThe 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
ExecSpaceExecution space to run the algorithm
MatrixThe type of the system matrix
VectorThe type of the vectors
Parameters
AThe known system matrix
xThe known vector
yThe vector that contains the result Ax
initWhether to initialize y to zero.