4#ifndef TETL_COMPLEX_NORM_HPP
5#define TETL_COMPLEX_NORM_HPP
7#include <etl/_complex/complex.hpp>
8#include <etl/_concepts/floating_point.hpp>
9#include <etl/_concepts/integral.hpp>
15[[nodiscard]]
constexpr auto norm(
complex<T>
const& z)
noexcept -> T
17 auto const x = z.real();
18 auto const y = z.imag();
23template <floating_point Float>
24[[nodiscard]]
constexpr auto norm(Float f)
noexcept ->
complex<Float>
30template <integral Integer>
31[[nodiscard]]
constexpr auto norm(Integer i)
noexcept ->
complex<
double>
constexpr auto norm(complex< T > const &z) noexcept -> T
Definition norm.hpp:15
constexpr auto norm(Integer i) noexcept -> complex< double >
Definition norm.hpp:31
constexpr auto norm(Float f) noexcept -> complex< Float >
Definition norm.hpp:24
Definition adjacent_find.hpp:9
A complex number.
Definition complex.hpp:20