#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 PYTHONIC_NS_BEGIN namespace numpy { namespace wrapper { template std::complex conjugate(std::complex const &v) { return std::conj(v); } template xsimd::batch, N> conjugate(xsimd::batch, N> const &v) { return xsimd::conj(v); } template xsimd::batch conjugate(xsimd::batch const &v) { return v; } template 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