24#ifndef MORPHEUS_COO_SERIAL_MULTIPLY_IMPL_HPP
25#define MORPHEUS_COO_SERIAL_MULTIPLY_IMPL_HPP
27#include <Morpheus_Macros.hpp>
28#if defined(MORPHEUS_ENABLE_SERIAL)
30#include <Morpheus_SpaceTraits.hpp>
31#include <Morpheus_FormatTraits.hpp>
32#include <Morpheus_FormatTags.hpp>
33#include <Morpheus_Spaces.hpp>
38template <
typename ExecSpace,
typename Matrix,
typename Vector>
40 const Matrix& A,
const Vector& x, Vector& y,
const bool init,
41 typename std::enable_if_t<
42 Morpheus::is_coo_matrix_format_container_v<Matrix> &&
43 Morpheus::is_dense_vector_format_container_v<Vector> &&
44 Morpheus::has_custom_backend_v<ExecSpace> &&
45 Morpheus::has_serial_execution_space_v<ExecSpace> &&
46 Morpheus::has_access_v<ExecSpace, Matrix, Vector>>* =
nullptr) {
47 using size_type =
typename Matrix::size_type;
48 using value_type =
typename Matrix::value_type;
51 for (size_type n = 0; n < A.nrows(); n++) {
56 for (size_type n = 0; n < A.nnnz(); n++) {
57 y[A.crow_indices(n)] += A.cvalues(n) * x[A.ccolumn_indices(n)];
Generic Morpheus interfaces.
Definition: dummy.cpp:24