File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
src/libPMacc/include/math/vector/math_functor Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ /* *
2
+ * Copyright 2013, 2015 Heiko Burau, Rene Widera, Richard Pausch
3
+ *
4
+ * This file is part of libPMacc.
5
+ *
6
+ * libPMacc is free software: you can redistribute it and/or modify
7
+ * it under the terms of either the GNU General Public License or
8
+ * the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * libPMacc is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU General Public License and the GNU Lesser General Public License
16
+ * for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * and the GNU Lesser General Public License along with libPMacc.
20
+ * If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
+
23
+ #pragma once
24
+
25
+ #include " types.h"
26
+ #include " lambda/Expression.hpp"
27
+ #include " algorithms/math/defines/trigo.hpp"
28
+
29
+ namespace PMacc
30
+ {
31
+ namespace math
32
+ {
33
+ namespace math_functor
34
+ {
35
+
36
+ struct Sinf
37
+ {
38
+ typedef float result_type;
39
+
40
+ DINLINE result_type operator ()(const result_type& value) const
41
+ {
42
+ return algorithms::math::sin (value);
43
+ }
44
+ };
45
+
46
+ lambda::Expression<lambda::exprTypes::terminal, mpl::vector<Sinf> > _sinf;
47
+
48
+ } // math_functor
49
+ } // math
50
+ } // PMacc
51
+
You can’t perform that action at this time.
0 commit comments