| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/pythran/pythonic/include/utils/ |
Upload File : |
#ifndef PYTHONIC_INCLUDE_UTILS_NUMPY_CONVERSION_HPP
#define PYTHONIC_INCLUDE_UTILS_NUMPY_CONVERSION_HPP
#include "pythonic/include/utils/numpy_traits.hpp"
#include <utility>
#if _MSC_VER && !__clang__
#define NUMPY_EXPR_TO_NDARRAY0_DECL(fname) \
template <class E, class... Types, \
typename std::enable_if<!types::is_ndarray<E>::value && \
types::is_array<E>::value, \
E>::type * = nullptr> \
auto fname(E const &expr, Types &&... others);
#else
#define NUMPY_EXPR_TO_NDARRAY0_DECL(fname) \
template <class E, class... Types> \
auto fname(E const &expr, Types &&... others) \
->typename std::enable_if< \
!types::is_ndarray<E>::value && types::is_array<E>::value, \
decltype(fname( \
types::ndarray<typename E::dtype, typename E::shape_t>{expr}, \
std::forward<Types>(others)...))>::type;
#endif
#endif