tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
tgamma.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_TGAMMA_HPP
4#define TETL_CMATH_TGAMMA_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
13
16[[nodiscard]] constexpr auto tgamma(float arg) noexcept -> float { return etl::detail::gcem::tgamma(arg); }
17[[nodiscard]] constexpr auto tgammaf(float arg) noexcept -> float { return etl::detail::gcem::tgamma(arg); }
18[[nodiscard]] constexpr auto tgamma(double arg) noexcept -> double { return etl::detail::gcem::tgamma(arg); }
19[[nodiscard]] constexpr auto tgamma(long double arg) noexcept -> long double { return etl::detail::gcem::tgamma(arg); }
20[[nodiscard]] constexpr auto tgammal(long double arg) noexcept -> long double { return etl::detail::gcem::tgamma(arg); }
21[[nodiscard]] constexpr auto tgamma(integral auto arg) noexcept -> double { return etl::tgamma(double(arg)); }
22
24
25} // namespace etl
26
27#endif // TETL_CMATH_TGAMMA_HPP
The concept integral<T> is satisfied if and only if T is an integral type.
Definition integral.hpp:13
constexpr auto tgamma(float arg) noexcept -> float
Computes the gamma function of arg.
Definition tgamma.hpp:16
constexpr auto tgammaf(float arg) noexcept -> float
Computes the gamma function of arg.
Definition tgamma.hpp:17
constexpr auto tgammal(long double arg) noexcept -> long double
Computes the gamma function of arg.
Definition tgamma.hpp:20
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8