13#include <xvec/detail/config.hpp>
14#include <xvec/detail/utilities.hpp>
16namespace _XVEC_NAMESPACE::simd
31template<vec_complex _Vc>
constexpr _Vc
conj(
const _Vc& value) {
return detail::conj(target, value); }
37template<vec_complex _Vc>
constexpr auto real(
const _Vc& value) {
return value.real(); }
43template<vec_complex _Vc>
constexpr auto imag(
const _Vc& value) {
return value.imag(); }
49template<vec_complex _Vc>
constexpr auto norm(
const _Vc& value) {
return (value *
conj(value)).real(); }
55template<vec_complex _Vc>
constexpr auto abs(
const _Vc& value) {
return sqrt(
norm(value)); }
66template<vec_complex _Vc>
inline _Vc
ceil(
const _Vc& value)
73template<vec_complex _Vc>
inline _Vc
floor(
const _Vc& value)
80template<vec_complex _Vc>
inline _Vc
trunc(
const _Vc& value)
87template<vec_complex _Vc>
inline _Vc
round(
const _Vc& value)
96namespace _XVEC_NAMESPACE {
constexpr auto norm(const _Vc &value)
Compute the squared magnitude of each complex element.
Definition std_complex.hpp:49
constexpr auto real(const _Vc &value)
Extract the real component of each complex element.
Definition std_complex.hpp:37
constexpr auto abs(const _Vc &value)
Compute the magnitude of each complex element.
Definition std_complex.hpp:55
constexpr auto imag(const _Vc &value)
Extract the imaginary component of each complex element.
Definition std_complex.hpp:43
constexpr _Vc conj(const _Vc &value)
Compute the conjugate of each complex element.
Definition std_complex.hpp:31
constexpr detail::deduced_vec_t< _Vp > sqrt(const _Vp &v)
Compute the square root of each element.
Definition std_math.hpp:102
_Vc floor(const _Vc &value)
Round the real and imaginary components of each element downward.
Definition std_complex.hpp:73
_Vc round(const _Vc &value)
Apply round independently to the real and imaginary components.
Definition std_complex.hpp:87
_Vc trunc(const _Vc &value)
Truncate the real and imaginary components of each element.
Definition std_complex.hpp:80
_Vc ceil(const _Vc &value)
Round the real and imaginary components of each element upward.
Definition std_complex.hpp:66
constexpr auto simd_bit_cast(const _From &v) noexcept
A simd-generic version of simd_bit_cast which directly invokes std::bit_cast.
Definition core.hpp:585