tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
lgamma.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_LGAMMA_HPP
4#define TETL_CMATH_LGAMMA_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
14[[nodiscard]] constexpr auto lgamma(float arg) noexcept -> float { return etl::detail::gcem::lgamma(arg); }
15
19[[nodiscard]] constexpr auto lgammaf(float arg) noexcept -> float { return etl::detail::gcem::lgamma(arg); }
20
24[[nodiscard]] constexpr auto lgamma(double arg) noexcept -> double { return etl::detail::gcem::lgamma(arg); }
25
29[[nodiscard]] constexpr auto lgamma(long double arg) noexcept -> long double { return etl::detail::gcem::lgamma(arg); }
30
34[[nodiscard]] constexpr auto lgammal(long double arg) noexcept -> long double { return etl::detail::gcem::lgamma(arg); }
35
39template <integral T>
40[[nodiscard]] constexpr auto lgamma(T arg) noexcept -> double
41{
42 return etl::detail::gcem::lgamma(static_cast<double>(arg));
43}
44
45} // namespace etl
46
47#endif // TETL_CMATH_LGAMMA_HPP
constexpr auto lgamma(float arg) noexcept -> float
Computes the natural logarithm of the absolute value of the gamma function of arg.
Definition lgamma.hpp:14
constexpr auto lgammaf(float arg) noexcept -> float
Computes the natural logarithm of the absolute value of the gamma function of arg.
Definition lgamma.hpp:19
constexpr auto lgammal(long double arg) noexcept -> long double
Computes the natural logarithm of the absolute value of the gamma function of arg.
Definition lgamma.hpp:34
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8