Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Morpheus_Multiply.hpp
1
24#ifndef MORPHEUS_MULTIPLY_HPP
25#define MORPHEUS_MULTIPLY_HPP
26
27#include <impl/Morpheus_Multiply_Impl.hpp>
28#include <impl/Dynamic/Morpheus_Multiply_Impl.hpp>
29
30namespace Morpheus {
57template <typename ExecSpace, typename Matrix, typename Vector>
58inline void multiply(const Matrix& A, const Vector& x, Vector& y,
59 const bool init) {
60 Impl::multiply<ExecSpace>(A, x, y, init);
61}
62
75template <typename ExecSpace, typename Matrix, typename Vector>
76inline void multiply(const Matrix& A, const Vector& x, Vector& y) {
77 Impl::multiply<ExecSpace>(A, x, y, true);
78}
81} // namespace Morpheus
82
83#endif // MORPHEUS_MULTIPLY_HPP
void multiply(const Matrix &A, const Vector &x, Vector &y, const bool init)
Computes the matrix vector product y = Ax.
Definition: Morpheus_Multiply.hpp:58
Generic Morpheus interfaces.
Definition: dummy.cpp:24