mgcpp
A C++ Math Library Based on CUDA
dmat_dmat_add.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_DMAT_DMAT_ADD_EXPR_HPP_
8 #define _MGCPP_EXPRESSIONS_DMAT_DMAT_ADD_EXPR_HPP_
9 
13 
14 namespace mgcpp {
15 
16 struct dmat_dmat_add_expr_type;
17 
18 template <typename LhsExpr, typename RhsExpr>
19 using dmat_dmat_add_expr = binary_expr<dmat_dmat_add_expr_type,
20  dmat_expr,
21  typename LhsExpr::result_type,
22  LhsExpr,
23  RhsExpr>;
24 
25 template <typename LhsExpr, typename RhsExpr>
26 inline auto operator+(dmat_expr<LhsExpr> const& lhs,
27  dmat_expr<RhsExpr> const& rhs) noexcept;
28 
29 template <typename LhsExpr, typename RhsExpr>
30 inline auto add(dmat_expr<LhsExpr> const& lhs,
31  dmat_expr<RhsExpr> const& rhs) noexcept;
32 
33 template <typename LhsExpr, typename RhsExpr>
34 inline auto operator-(dmat_expr<LhsExpr> const& lhs,
35  dmat_expr<RhsExpr> const& rhs) noexcept;
36 
37 template <typename LhsExpr, typename RhsExpr>
38 inline auto sub(dmat_expr<LhsExpr> const& lhs,
39  dmat_expr<RhsExpr> const& rhs) noexcept;
40 
41 } // namespace mgcpp
42 
44 #endif
binary_expr< dmat_dmat_add_expr_type, dmat_expr, typename LhsExpr::result_type, LhsExpr, RhsExpr > dmat_dmat_add_expr
Definition: dmat_dmat_add.hpp:23
auto operator+(dmat_expr< LhsExpr > const &lhs, dmat_expr< RhsExpr > const &rhs) noexcept
auto sub(dmat_expr< LhsExpr > const &lhs, dmat_expr< RhsExpr > const &rhs) noexcept
Definition: adapter_base.hpp:12
generic_expr< TagType, 0, ResultExprType, ResultType, 0, LhsExpr, RhsExpr > binary_expr
Definition: generic_expr.hpp:110
auto operator-(dmat_expr< LhsExpr > const &lhs, dmat_expr< RhsExpr > const &rhs) noexcept
auto add(dmat_expr< LhsExpr > const &lhs, dmat_expr< RhsExpr > const &rhs) noexcept
Definition: dmat_expr.hpp:19