#ifndef PYTHONIC_INCLUDE_OPERATOR_IMAX_HPP #define PYTHONIC_INCLUDE_OPERATOR_IMAX_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/numpy/maximum.hpp" PYTHONIC_NS_BEGIN namespace operator_ { template auto imax(A &&a, B &&b) -> typename std::enable_if< std::is_const::value || !std::is_assignable::value, decltype(numpy::functor::maximum{}(std::forward(a), std::forward(b)))>::type; template auto imax(A &&a, B &&b) -> typename std::enable_if< !std::is_const::value && std::is_assignable::value, decltype(a = numpy::functor::maximum{}(std::forward(a), std::forward(b)))>::type; DEFINE_FUNCTOR(pythonic::operator_, imax); } PYTHONIC_NS_END #endif