![]() |
Block-Structured AMR Software Framework
|
#include <AMReX_Config.H>#include <AMReX_AlgVector.H>#include <AMReX_AlgVecUtil.H>#include <AMReX_GpuComplex.H>#include <AMReX_SpMatrix.H>Go to the source code of this file.
Namespaces | |
| namespace | amrex |
Functions | |
| template<typename T > | |
| void | amrex::SpMV (Long nrows, Long ncols, T *__restrict__ py, CsrView< T const > const &A, T const *__restrict__ px) |
| Perform y = A * x using CSR data (GPU/CPU aware). | |
| template<typename T , template< typename > class AllocM, typename AllocV > | |
| void | amrex::SpMV (AlgVector< T, AllocV > &y, SpMatrix< T, AllocM > const &A, AlgVector< T, AllocV > const &x) |
Perform y = A * x using AlgVector wrappers. | |
| template<typename T , template< typename > class AllocM, typename AllocV > | |
| void | amrex::computeResidual (AlgVector< T, AllocV > &res, SpMatrix< T, AllocM > const &A, AlgVector< T, AllocV > const &x, AlgVector< T, AllocV > const &b) |
Compute the residual res = b - A * x. | |
Back-end implementations of sparse matrix-vector products (CSR).