4#ifndef TETL_COMPLEX_REAL_HPP
5#define TETL_COMPLEX_REAL_HPP
7#include <etl/_complex/complex.hpp>
8#include <etl/_concepts/floating_point.hpp>
9#include <etl/_concepts/integral.hpp>
15[[nodiscard]]
constexpr auto real(
complex<T>
const& z)
noexcept(
noexcept(
z.
real())) -> T
21template <floating_point Float>
22[[nodiscard]]
constexpr auto real(Float f)
noexcept -> Float
28template <integral Integer>
29[[nodiscard]]
constexpr auto real(Integer i)
noexcept ->
double
31 return static_cast<
double>(i);
constexpr auto real(Integer i) noexcept -> double
Definition real.hpp:29
constexpr auto real(complex< T > const &z) noexcept(noexcept(z.real())) -> T
Definition real.hpp:15
constexpr auto real(Float f) noexcept -> Float
Definition real.hpp:22
Definition adjacent_find.hpp:9
A complex number.
Definition complex.hpp:20