1#ifndef included_DeviceMatrixOperationsHelpers_H_
2#define included_DeviceMatrixOperationsHelpers_H_
7namespace LinearAlgebra {
10template<
typename G,
typename L,
typename S>
12 static void mult(
const L *row_starts,
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 );
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)