tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
isfinite.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_ISFINITE_HPP
4#define TETL_CMATH_ISFINITE_HPP
5
8
9namespace etl {
10
15[[nodiscard]] constexpr auto isfinite(float arg) -> bool { return not etl::isnan(arg) and not etl::isinf(arg); }
16
18[[nodiscard]] constexpr auto isfinite(double arg) -> bool { return not etl::isnan(arg) and not etl::isinf(arg); }
19
21[[nodiscard]] constexpr auto isfinite(long double arg) -> bool { return not etl::isnan(arg) and not etl::isinf(arg); }
22
23} // namespace etl
24
25#endif // TETL_CMATH_ISFINITE_HPP
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8
constexpr auto isfinite(half arg) noexcept -> bool
Definition half.hpp:48
constexpr auto isinf(half arg) noexcept -> bool
Definition half.hpp:54
constexpr auto isnan(half arg) noexcept -> bool
Definition half.hpp:60