#ifndef PYTHONIC_INCLUDE_NUMPY_MEDIAN_HPP #define PYTHONIC_INCLUDE_NUMPY_MEDIAN_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/ndarray.hpp" #include "pythonic/include/numpy/asarray.hpp" #include PYTHONIC_NS_BEGIN namespace numpy { template decltype(std::declval() + 1.) median(types::ndarray const &arr, types::none_type = {}); template typename std::enable_if< std::tuple_size::value != 1, types::ndarray() + 1.), types::array::value - 1>>>::type median(types::ndarray const &arr, long axis); template typename std::enable_if::value == 1, decltype(std::declval() + 1.)>::type median(types::ndarray const &arr, long axis); NUMPY_EXPR_TO_NDARRAY0_DECL(median); DEFINE_FUNCTOR(pythonic::numpy, median); } PYTHONIC_NS_END #endif