mgcpp
A C++ Math Library Based on CUDA
scalar_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_SCALAR_EXPR_HPP_
8 #define _MGCPP_EXPRESSIONS_SCALAR_EXPR_HPP_
9 
14 #include <type_traits>
15 
16 namespace mgcpp {
17 template <typename Expr>
18 struct scalar_expr : public expression<Expr> {};
19 
20 struct scalar_constant_expr_type;
21 
22 template <typename T>
25 
26 template <typename Type>
27 inline scalar_constant_expr<Type> scal(Type scalar);
28 
29 struct scalar_zero_constant_expr_type;
30 
31 template <typename T>
34 
35 struct scalar_one_constant_expr_type;
36 
37 template <typename T>
40 
41 } // namespace mgcpp
42 
44 #endif
Definition: adapter_base.hpp:12
Definition: expression.hpp:18
Definition: forward.hpp:25
Definition: scalar_expr.hpp:18
scalar_constant_expr< Type > scal(Type scalar)