%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/lib/python3/dist-packages/pythran/pythonic/include/numpy/
Upload File :
Create Path :
Current File : //proc/985914/root/lib/python3/dist-packages/pythran/pythonic/include/numpy/ptp.hpp

#ifndef PYTHONIC_INCLUDE_NUMPY_PTP_HPP
#define PYTHONIC_INCLUDE_NUMPY_PTP_HPP

#include "pythonic/include/numpy/min.hpp"
#include "pythonic/include/numpy/max.hpp"

PYTHONIC_NS_BEGIN

namespace numpy
{
  template <class E>
  auto ptp(E const &expr, long axis)
      -> decltype(max(expr, axis) - min(expr, axis));

  template <class E>
  auto ptp(E const &expr) -> decltype(max(expr) - min(expr));

  DEFINE_FUNCTOR(pythonic::numpy, ptp);
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0