31#ifndef REMORA_KERNELS_FOLD_ROWS_HPP
32#define REMORA_KERNELS_FOLD_ROWS_HPP
39namespace remora {
namespace bindings{
40template<
class F,
class G,
class M,
class V,
class Device>
42 matrix_expression<M, Device>
const & A,
43 vector_expression<V, Device>& b,
48 fold_rows(A, b, f, g, row_major());
57template <
class F,
class G,
class M,
class V,
class Device>
59 matrix_expression<M, Device>
const & A,
60 vector_expression<V, Device>& b,
64 REMORA_SIZE_CHECK(A().size1() == b().size());
65 if(A().size1() == 0)
return;
67 A, b, f, g,
typename M::orientation()