28 #ifndef REMORA_KERNELS_MATRIX_FOLD_HPP 29 #define REMORA_KERNELS_MATRIX_FOLD_HPP 31 #include "../detail/traits.hpp" 37 namespace remora{
namespace kernels {
44 template<
class F,
class M,
class Device>
45 void matrix_fold(matrix_expression<M, Device>
const& m,
typename F::result_type& value) {
46 typedef typename M::evaluation_category::tag Tag;
47 typedef typename M::orientation Orientation;
48 bindings::matrix_fold<F>(m, value, Orientation(), Tag());