%PDF- %PDF-
Direktori : /proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/builtins/pythran/ |
Current File : //proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/builtins/pythran/abssqr.hpp |
#ifndef PYTHONIC_BUILTIN_PYTHRAN_ABSSQR_HPP #define PYTHONIC_BUILTIN_PYTHRAN_ABSSQR_HPP #include "pythonic/include/builtins/pythran/abssqr.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/utils/meta.hpp" #include "pythonic/utils/numpy_traits.hpp" #include "pythonic/types/numpy_op_helper.hpp" PYTHONIC_NS_BEGIN namespace builtins { namespace pythran { namespace details { template <class T> T abssqr(T const &v) { return v * v; } template <class T> T abssqr(std::complex<T> const &v) { return v.real() * v.real() + v.imag() * v.imag(); } } #define NUMPY_NARY_FUNC_NAME abssqr #define NUMPY_NARY_FUNC_SYM details::abssqr #include "pythonic/types/numpy_nary_expr.hpp" } } PYTHONIC_NS_END #endif