PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
core
/
tests
/
__pycache__
/
Editing: test_mem_overlap.cpython-311.pyc
� � h�q � � � d dl Z d dlZd dlZd dlmZmZ d dlmZ d dl m Z d dlmZm Z mZmZ dZdZ eegez � � Zd ZdZd � Zd � Zd� Zd� Zd � Zej j d� � � Zd� Zd� Zd� Z d$d�Z!d� Z"ej j d� � � Z#ej j d� � � Z$d� Z%d� Z&d� Z'd� Z(d%d�Z)d� Z*d� Z+d� Z,d � Z-d!� Z. G d"� d#� � Z/dS )&� N)�solve_diophantine�internal_overlap)�_umath_tests)� as_strided)�assert_� assert_raises�assert_equal�assert_array_equal� � ���c �� � | dk rt dz gS g }dD ]O}dD ]J}t dz | |z |z dz z }|| |z |z z }|� t ||||z � � � � �K�P|S )zGReturns slices of length nelems, from start onwards, in direction sign.r r �� r )r r )�size�append�slice)�nelems�res�step�sign�start�stops �t/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib64/python3.11/site-packages/numpy/core/tests/test_mem_overlap.py�_indices_for_nelemsr s� � � ��{�{��� �{�� �C�� 8� 8��� 8� 8�D��A�I��� �� 4�� 9�9�E��6�D�=�4�/�/�D��J�J�u�U�D�$��+�6�6�7�7�7�7� 8� �J� c � � g } dD ]9}t |� � }| � t j ||� � � � �:| S )z$Returns (src, dst) pairs of indices.)r r � )r �extend� itertools�product)r r �inds r �_indices_for_axisr# % sL � � �C�� 0� 0��!�&�)�)��� � �9�$�S�#�.�.�/�/�/�/��Jr c �J � t � � }t j || �� � S )zKReturns ((axis0_src, axis0_dst), (axis1_src, axis1_dst), ... ) index pairs.)�repeat)r# r r! )�ndimsr"