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