Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Morpheus_Reduction.hpp
1
24#ifndef MORPHEUS_REDUCTION_HPP
25#define MORPHEUS_REDUCTION_HPP
26
27#include <impl/Morpheus_Reduction_Impl.hpp>
28
29namespace Morpheus {
46template <typename ExecSpace, typename Vector>
47typename Vector::value_type reduce(const Vector& in,
48 typename Vector::size_type size) {
49 static_assert(is_dense_vector_format_container_v<Vector>,
50 "in must be a DenseVector container");
51 return Impl::reduce<ExecSpace>(in, size);
52}
55} // namespace Morpheus
56
57#endif // MORPHEUS_REDUCTION_HPP
Vector::value_type reduce(const Vector &in, typename Vector::size_type size)
Performs a sum reduction on the contents of a vector.
Definition: Morpheus_Reduction.hpp:47
Generic Morpheus interfaces.
Definition: dummy.cpp:24