27#ifndef _gcem_hypot_HPP
28#define _gcem_hypot_HPP
39 return abs(x) *
sqrt( T(1) + (ydx * ydx) );
49 GCLIM<T>::quiet_NaN() :
52 GCLIM<T>::infinity() :
62template<
typename T1,
typename T2,
typename TC = common_return_t<T1,T2>>
81template<
typename T1,
typename T2>
UnitType abs(const UnitType x) noexcept
Compute absolute value.
Definition: math.h:721
auto sqrt(const UnitType &value) noexcept -> unit_t< square_root< typename units::traits::unit_t_traits< UnitType >::unit_type >, typename units::traits::unit_t_traits< UnitType >::underlying_type, linear_scale >
computes the square root of value
Definition: math.h:483
constexpr common_return_t< T1, T2 > hypot(const T1 x, const T2 y) noexcept
Compile-time Pythagorean addition function.
Definition: hypot.hpp:84
constexpr common_t< T1, T2 > min(const T1 x, const T2 y) noexcept
Compile-time pairwise minimum function.
Definition: min.hpp:35
const Scalar & y
Definition: MathFunctions.h:821
Definition: Eigen_Colamd.h:50
constexpr bool any_inf(const T1 x, const T2 y) noexcept
Definition: is_inf.hpp:137
constexpr T hypot_compute(const T x, const T ydx) noexcept
Definition: hypot.hpp:36
constexpr T hypot_vals_check(const T x, const T y) noexcept
Definition: hypot.hpp:45
constexpr TC hypot_type_check(const T1 x, const T2 y) noexcept
Definition: hypot.hpp:65
constexpr bool any_nan(const T1 x, const T2 y) noexcept
Definition: is_nan.hpp:45