#ifndef PYTHONIC_INCLUDE_BUILTIN_POW_HPP #define PYTHONIC_INCLUDE_BUILTIN_POW_HPP #include "pythonic/include/numpy/power.hpp" #include "pythonic/include/utils/functor.hpp" PYTHONIC_NS_BEGIN namespace builtins { // this is only the case in python if the exponent is negative double pow(long, long); // in that case we are sure we have a positive exponent template long pow(long, std::integral_constant); template auto pow(Types &&... args) -> decltype(numpy::functor::power{}(std::forward(args)...)); DEFINE_FUNCTOR(pythonic::builtins, pow); } PYTHONIC_NS_END #endif