mgcpp
A C++ Math Library Based on CUDA
dmat_reduce_expr.hpp
Go to the documentation of this file.
1 #ifndef DMAT_REDUCE_HPP
2 #define DMAT_REDUCE_HPP
3 
7 
8 namespace mgcpp {
9 
10 struct dmat_reduce_sum_expr_type;
11 
12 template <typename Expr>
14  generic_expr<dmat_reduce_sum_expr_type,
15  0,
16  scalar_expr,
17  typename Expr::result_type::value_type,
18  0,
19  Expr>;
20 
21 template <typename Expr>
22 inline decltype(auto) reduce_sum(dmat_expr<Expr> const& expr) noexcept;
23 
24 struct dmat_reduce_mean_expr_type;
25 
26 template <typename Expr>
28  generic_expr<dmat_reduce_mean_expr_type,
29  0,
30  scalar_expr,
31  typename Expr::result_type::value_type,
32  0,
33  Expr>;
34 
35 template <typename Expr>
36 inline decltype(auto) reduce_mean(dmat_expr<Expr> const& expr) noexcept;
37 } // namespace mgcpp
38 
39 #include <mgcpp/expressions/dmat_reduce_expr.tpp>
40 #endif // DMAT_REDUCE_HPP
Definition: adapter_base.hpp:12
generic_expr< dmat_reduce_sum_expr_type, 0, scalar_expr, typename Expr::result_type::value_type, 0, Expr > dmat_reduce_sum_expr
Definition: dmat_reduce_expr.hpp:19
Definition: dmat_expr.hpp:19
Definition: forward.hpp:25
Definition: host_value_type.hpp:17
decltype(auto) reduce_mean(dmat_expr< Expr > const &expr) noexcept
decltype(auto) reduce_sum(dmat_expr< Expr > const &expr) noexcept