File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/libPMacc/include/math/vector/math_functor Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
/* *
2
- * Copyright 2013 Heiko Burau, Rene Widera
2
+ * Copyright 2013, 2015 Heiko Burau, Rene Widera, Richard Pausch
3
3
*
4
4
* This file is part of libPMacc.
5
5
*
20
20
* If not, see <http://www.gnu.org/licenses/>.
21
21
*/
22
22
23
- #ifndef MATH_FUNCTOR_SQRTF_HPP
24
- #define MATH_FUNCTOR_SQRTF_HPP
23
+ #pragma once
25
24
26
25
#include " types.h"
27
26
#include " lambda/Expression.hpp"
27
+ #include " algorithms/math/defines/sqrt.hpp"
28
28
29
29
namespace PMacc
30
30
{
@@ -37,9 +37,9 @@ struct Sqrtf
37
37
{
38
38
typedef float result_type;
39
39
40
- HDINLINE float operator ()(const float & value) const
40
+ HDINLINE result_type operator ()(const result_type & value) const
41
41
{
42
- return __sqrtf (value);
42
+ return algorithms::math::sqrt (value);
43
43
}
44
44
};
45
45
@@ -49,4 +49,3 @@ lambda::Expression<lambda::exprTypes::terminal, mpl::vector<Sqrtf> > _sqrtf;
49
49
} // math
50
50
} // PMacc
51
51
52
- #endif // MATH_FUNCTOR_SQRTF_HPP
You can’t perform that action at this time.
0 commit comments