%PDF- %PDF-
Direktori : /proc/985914/root/lib/python3/dist-packages/pythran/pythonic/include/numpy/ |
Current File : //proc/985914/root/lib/python3/dist-packages/pythran/pythonic/include/numpy/conjugate.hpp |
#ifndef PYTHONIC_INCLUDE_NUMPY_CONJUGATE_HPP #define PYTHONIC_INCLUDE_NUMPY_CONJUGATE_HPP #include "pythonic/include/types/numpy_op_helper.hpp" #include "pythonic/include/utils/numpy_traits.hpp" #include "pythonic/include/utils/functor.hpp" #include <xsimd/xsimd.hpp> PYTHONIC_NS_BEGIN namespace numpy { namespace wrapper { template <class T> std::complex<T> conjugate(std::complex<T> const &v) { return std::conj(v); } template <class T, std::size_t N> xsimd::batch<std::complex<T>, N> conjugate(xsimd::batch<std::complex<T>, N> const &v) { return xsimd::conj(v); } template <class T, std::size_t N> xsimd::batch<T, N> conjugate(xsimd::batch<T, N> const &v) { return v; } template <class T> T conjugate(T const &v) { return v; } } #define NUMPY_NARY_FUNC_NAME conjugate #define NUMPY_NARY_FUNC_SYM wrapper::conjugate #include "pythonic/include/types/numpy_nary_expr.hpp" } PYTHONIC_NS_END #endif