Template Function manif::internal::csqrt

Function Documentation

template<typename T>
T constexpr manif::internal::csqrt(T x)

Constexpr version of the square root Return value:

  • For a finite and non-negative value of “x”, returns an approximation for the square root of “x”

  • Otherwise, returns NaN

credits : https://stackoverflow.com/a/34134071/9709397