Template Function librapid::detail::algorithm::logHypot#

Function Documentation#

template<bool safe = true, typename T>
auto librapid::detail::algorithm::logHypot(const T x, const T y) noexcept -> T#

Calculates \( \log(\sqrt{x^2 + y^2}) \).

Template Parameters
  • safe – If true, will check for NaNs and overflow

  • T – Template type

Parameters
  • x – Horizontal component

  • y – Vertical component

Returns

\( \log(\sqrt{x^2 + y^2}) \)