We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7c4ca commit 96b8817Copy full SHA for 96b8817
src/libPMacc/include/math/vector/math_functor/sinf.hpp
@@ -33,17 +33,19 @@ namespace math
33
namespace math_functor
34
{
35
36
-struct Sinf
+template<typename T_Type>
37
+struct Sin
38
- typedef float result_type;
39
+ typedef T_Type result_type;
40
41
DINLINE result_type operator()(const result_type& value) const
42
43
return algorithms::math::sin(value);
44
}
45
};
46
-lambda::Expression<lambda::exprTypes::terminal, mpl::vector<Sinf> > _sinf;
47
+lambda::Expression<lambda::exprTypes::terminal, mpl::vector<Sin<float>> > _sinf;
48
+lambda::Expression<lambda::exprTypes::terminal, mpl::vector<Sin<double>> > _sind;
49
50
} // math_functor
51
} // math
0 commit comments