Advanced Multi-Physics (AMP)
On-Line Documentation
DeviceMatrixOperations.h
Go to the documentation of this file.
1#ifndef included_DeviceMatrixOperationsHelpers_H_
2#define included_DeviceMatrixOperationsHelpers_H_
3
4#include <cstddef>
5
6namespace AMP {
7namespace LinearAlgebra {
8
9
10template<typename G, typename L, typename S>
12 static void mult( const L *row_starts,
13 const L *cols_loc,
14 const S *coeffs,
15 const size_t N,
16 const S *in,
17 S *out );
18
19 static void scale( const size_t N, S *coeffs, const S alpha );
20 static void axpy( const size_t N, const S alpha, S *x, S *y );
21 static void copy( const size_t N, const S *x, S *y );
22 static void setDiagonal( const L *row_starts, S *coeffs, const size_t N, const S *diag );
23 static void extractDiagonal( const L *row_starts, const S *coeffs, const size_t N, S *diag );
24 static void setIdentity( const L *row_starts, S *coeffs, const size_t N );
25 static void LinfNorm( const size_t N, const S *x, const L *row_starts, S *row_sums );
26};
27
28} // namespace LinearAlgebra
29} // namespace AMP
30#endif
static void setIdentity(const L *row_starts, S *coeffs, const size_t N)
static void scale(const size_t N, S *coeffs, const S alpha)
static void LinfNorm(const size_t N, const S *x, const L *row_starts, S *row_sums)
static void axpy(const size_t N, const S alpha, S *x, S *y)
static void mult(const L *row_starts, const L *cols_loc, const S *coeffs, const size_t N, const S *in, S *out)
static void copy(const size_t N, const S *x, S *y)
static void extractDiagonal(const L *row_starts, const S *coeffs, const size_t N, S *diag)
static void setDiagonal(const L *row_starts, S *coeffs, const size_t N, const S *diag)



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page