Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Morpheus_Dot.hpp
1
24#ifndef MORPHEUS_DOT_HPP
25#define MORPHEUS_DOT_HPP
26
27#include <impl/Morpheus_Dot_Impl.hpp>
28
29namespace Morpheus {
50template <typename ExecSpace, typename Vector1, typename Vector2>
51inline typename Vector2::value_type dot(typename Vector1::size_type n,
52 const Vector1& x, const Vector2& y) {
53 static_assert(is_dense_vector_format_container_v<Vector1>,
54 "x must be a DenseVector container");
55 static_assert(is_dense_vector_format_container_v<Vector2>,
56 "y must be a DenseVector container");
57 return Impl::dot<ExecSpace>(n, x, y);
58}
61} // namespace Morpheus
62
63#endif // MORPHEUS_DOT_HPP
Vector2::value_type dot(typename Vector1::size_type n, const Vector1 &x, const Vector2 &y)
Computes the dot product of two vectors.
Definition: Morpheus_Dot.hpp:51
Generic Morpheus interfaces.
Definition: dummy.cpp:24