]> www.ginac.de Git - cln.git/blob - src/complex/algebraic/cl_C_abs_aux.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / complex / algebraic / cl_C_abs_aux.cc
1 // abs().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_C.h"
8
9
10 // Implementation.
11
12 #include "cln/real.h"
13
14 namespace cln {
15
16 CL_INLINE const cl_R CL_INLINE_DECL(abs) (const cl_C& x)
17 {
18         var const cl_R& a = realpart(x);
19         var const cl_R& b = imagpart(x);
20         return cl_hypot(a,b);
21 }
22
23 }  // namespace cln