xtensor
|
Functions | |
template<class E > | |
decltype(auto) | xt::real (E &&e) noexcept |
Return an xt::xexpression representing the real part of the given expression. | |
template<class E > | |
decltype(auto) | xt::imag (E &&e) noexcept |
Return an xt::xexpression representing the imaginary part of the given expression. | |
template<class E > | |
auto | xt::conj (E &&e) noexcept |
Return an xt::xfunction evaluating to the complex conjugate of the given expression. | |
template<class E > | |
auto | xt::arg (E &&e) noexcept |
Calculates the phase angle (in radians) elementwise for the complex numbers in e . | |
template<class E > | |
auto | xt::angle (E &&e, bool deg=false) noexcept |
Calculates the phase angle elementwise for the complex numbers in e . | |
template<class E > | |
auto | xt::norm (E &&e) noexcept |
Calculates the squared magnitude elementwise for the complex numbers in e . | |
Defined in xtensor/xcomplex.hpp
Calculates the phase angle elementwise for the complex numbers in e
.
Note that this function might be slightly less performant than xt::arg.
e | the xt::xexpression |
deg | calculate angle in degrees instead of radians |
Definition at line 238 of file xcomplex.hpp.
Calculates the phase angle (in radians) elementwise for the complex numbers in e
.
e | the xt::xexpression |
Definition at line 221 of file xcomplex.hpp.
Return an xt::xfunction evaluating to the complex conjugate of the given expression.
e | the xt::xexpression |
Definition at line 207 of file xcomplex.hpp.
Return an xt::xexpression representing the imaginary part of the given expression.
The returned expression either hold a const reference to e
or a copy depending on whether e
is an lvalue or an rvalue.
e | The xt::xexpression |
Definition at line 144 of file xcomplex.hpp.
Calculates the squared magnitude elementwise for the complex numbers in e
.
Equivalent to xt::pow(xt::real(e), 2) + xt::pow(xt::imag(e), 2)
.
e | the xt::xexpression |
Definition at line 257 of file xcomplex.hpp.
Return an xt::xexpression representing the real part of the given expression.
The returned expression either hold a const reference to e
or a copy depending on whether e
is an lvalue or an rvalue.
e | The xt::xexpression |
Definition at line 128 of file xcomplex.hpp.