Skip to content

Hyperbolic functions

cosh function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
flt_type<T1> cosh(const T1 &x)

Returns the hyperbolic cosine of the x

Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
KFR_FUNCTION flt_type<T1> cosh(const T1& x)
{
    return intrinsics::cosh(x);
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L51

template <typename E1,
          KFR_ENABLE_IF(is_input_expression<E1>::value)>
internal::expression_function<fn::cosh, E1> cosh(E1 &&x)

Returns template expression that returns the hyperbolic cosine of the x

Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>::value)>
KFR_FUNCTION internal::expression_function<fn::cosh, E1> cosh(E1&& x)
{
    return { fn::cosh(), std::forward<E1>(x) };
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L58

coshsinh function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
flt_type<T1> coshsinh(const T1 &x)

Returns the hyperbolic cosine of the even elements of the x and the hyperbolic sine of the odd elements of the x

Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
KFR_FUNCTION flt_type<T1> coshsinh(const T1& x)
{
    return intrinsics::coshsinh(x);
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L110

template <typename E1,
          KFR_ENABLE_IF(is_input_expression<E1>::value)>
internal::expression_function<fn::coshsinh, E1>
coshsinh(E1 &&x)

Returns template expression that returns the hyperbolic cosine of the even elements of the x and the hyperbolic sine of the odd elements of the x

Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>::value)>
KFR_FUNCTION internal::expression_function<fn::coshsinh, E1> coshsinh(E1&& x)
{
    return { fn::coshsinh(), std::forward<E1>(x) };
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L118

coth function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
flt_type<T1> coth(const T1 &x)

Returns the hyperbolic cotangent of the x

Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
KFR_FUNCTION flt_type<T1> coth(const T1& x)
{
    return intrinsics::coth(x);
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L79

template <typename E1,
          KFR_ENABLE_IF(is_input_expression<E1>::value)>
internal::expression_function<fn::coth, E1> coth(E1 &&x)

Returns template expression that returns the hyperbolic cotangent of the x

Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>::value)>
KFR_FUNCTION internal::expression_function<fn::coth, E1> coth(E1&& x)
{
    return { fn::coth(), std::forward<E1>(x) };
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L86

sinh function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
flt_type<T1> sinh(const T1 &x)

Returns the hyperbolic sine of the x

Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
KFR_FUNCTION flt_type<T1> sinh(const T1& x)
{
    return intrinsics::sinh(x);
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L37

template <typename E1,
          KFR_ENABLE_IF(is_input_expression<E1>::value)>
internal::expression_function<fn::sinh, E1> sinh(E1 &&x)

Returns template expression that returns the hyperbolic sine of the x

Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>::value)>
KFR_FUNCTION internal::expression_function<fn::sinh, E1> sinh(E1&& x)
{
    return { fn::sinh(), std::forward<E1>(x) };
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L44

sinhcosh function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
flt_type<T1> sinhcosh(const T1 &x)

Returns the hyperbolic sine of the even elements of the x and the hyperbolic cosine of the odd elements of the x

Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
KFR_FUNCTION flt_type<T1> sinhcosh(const T1& x)
{
    return intrinsics::sinhcosh(x);
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L94

template <typename E1,
          KFR_ENABLE_IF(is_input_expression<E1>::value)>
internal::expression_function<fn::sinhcosh, E1>
sinhcosh(E1 &&x)

Returns template expression that returns the hyperbolic sine of the even elements of the x and the hyperbolic cosine of the odd elements of the x

Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>::value)>
KFR_FUNCTION internal::expression_function<fn::sinhcosh, E1> sinhcosh(E1&& x)
{
    return { fn::sinhcosh(), std::forward<E1>(x) };
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L102

tanh function

template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
flt_type<T1> tanh(const T1 &x)

Returns the hyperbolic tangent of the x

Source code
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>::value)>
KFR_FUNCTION flt_type<T1> tanh(const T1& x)
{
    return intrinsics::tanh(x);
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L65

template <typename E1,
          KFR_ENABLE_IF(is_input_expression<E1>::value)>
internal::expression_function<fn::tanh, E1> tanh(E1 &&x)

Returns template expression that returns the hyperbolic tangent of the x

Source code
template <typename E1, KFR_ENABLE_IF(is_input_expression<E1>::value)>
KFR_FUNCTION internal::expression_function<fn::tanh, E1> tanh(E1&& x)
{
    return { fn::tanh(), std::forward<E1>(x) };
}

https://github.com/kfrlib/kfr/blob//include/kfr/math/hyperbolic.hpp#L72


Auto-generated from sources, Revision , https://github.com/kfrlib/kfr/blob//include/kfr/