LoAdSG
util.hpp
1
9
10
#ifndef UTIL_HPP
11
#define UTIL_HPP
12
13
namespace
Util
14
{
15
26
template
<
typename
T>
27
inline
constexpr
T pow(
const
T& b,
size_t
e )
28
{
29
return
( (e==0) ? 1.0 : b * pow(b, e-1) );
30
}
31
41
template
<
typename
T>
42
inline
T abs(
const
T& x )
43
{
44
return
( (x>(T)0.0) ? x : (-x) );
45
}
46
47
}
48
49
#endif
/* UTIL_HPP */
home
runner
work
LoAdSG
LoAdSG
library
source
stencils
InterfaceIntegration
HelmholtzIntegrator
util.hpp
Generated by
1.9.8