#ifndef PYTHONIC_NUMPY_NDIM_HPP
#define PYTHONIC_NUMPY_NDIM_HPP

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

#include "pythonic/types/ndarray.hpp"
#include "pythonic/utils/functor.hpp"

PYTHONIC_NS_BEGIN

namespace numpy
{

  template <class E>
  long ndim(E const &e)
  {
    return std::tuple_size_v<decltype(shape(e))>;
  }
} // namespace numpy
PYTHONIC_NS_END

#endif
