From 20b71cd9f07966f289facf9b2abbb9a7efd511d1 Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 22 Nov 2016 09:10:56 +0000 Subject: [PATCH] Core: abs(Complex) git-svn-id: svn://ultimatepp.org/upp/trunk@10479 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Complex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/Core/Complex.h b/uppsrc/Core/Complex.h index d2ea792a1..b34e7d026 100644 --- a/uppsrc/Core/Complex.h +++ b/uppsrc/Core/Complex.h @@ -32,6 +32,8 @@ template<> inline String AsString(const Complex& x) { return AsString((const std template<> inline dword ValueTypeNo(const Complex*) { return COMPLEX_V; } +inline double abs(const Complex& c) { return std::abs(c); } + inline const Complex& Nvl(const Complex& a, const Complex& b) { return IsNull(a) ? b : a; } template<>