Template Function librapid::detail::algorithm::logP1#

Function Documentation#

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

Calculates \( \log(1 + x) \).

May be inaccurate for small inputs

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

  • T – Template type

Parameters

x – Input value

Returns

\( \log(1 + x) \)