mgcpp
A C++ Math Library Based on CUDA
dvec_reduce_expr.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_EXPRESSIONS_DVEC_REDUCE_EXPR_HPP_
8 #define _MGCPP_EXPRESSIONS_DVEC_REDUCE_EXPR_HPP_
9 
13 
14 namespace mgcpp {
15 
16 struct dvec_reduce_sum_expr_type;
17 
18 template <typename Expr>
20  generic_expr<dvec_reduce_sum_expr_type,
21  0,
22  scalar_expr,
23  typename Expr::result_type::value_type,
24  0,
25  Expr>;
26 
27 template <typename Expr>
28 inline decltype(auto) reduce_sum(dvec_expr<Expr> const& expr) noexcept;
29 
30 struct dvec_reduce_mean_expr_type;
31 
32 template <typename Expr>
34  generic_expr<dvec_reduce_mean_expr_type,
35  0,
36  scalar_expr,
37  typename Expr::result_type::value_type,
38  0,
39  Expr>;
40 
41 template <typename Expr>
42 inline decltype(auto) reduce_mean(dvec_expr<Expr> const& expr) noexcept;
43 } // namespace mgcpp
44 
45 #include <mgcpp/expressions/dvec_reduce_expr.tpp>
46 #endif
Definition: adapter_base.hpp:12
Definition: dvec_expr.hpp:20
generic_expr< dvec_reduce_sum_expr_type, 0, scalar_expr, typename Expr::result_type::value_type, 0, Expr > dvec_reduce_sum_expr
Definition: dvec_reduce_expr.hpp:25
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