%PDF- %PDF-
Mini Shell

Mini Shell

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

#ifndef PYTHONIC_NUMPY_PTP_HPP
#define PYTHONIC_NUMPY_PTP_HPP

#include "pythonic/include/numpy/ptp.hpp"

#include "pythonic/numpy/min.hpp"
#include "pythonic/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))
  {
    return max(expr, axis) - min(expr, axis);
  }

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

#endif

Zerion Mini Shell 1.0