관리-도구
편집 파일: test_interaction.cpython-311.pyc
� �܋fc. � �� � d Z ddlZddlZddlZddlZddlmZmZm Z m Z mZmZm Z d� Zd� Zd� Zd� Zd� Zd � Zd � Zd� Zd� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z G d� d� � Z!d� Z"d� Z#dS )z�Tests of interaction of matrix with other parts of numpy. Note that tests with MaskedArray and linalg are done in separate files. � N)�assert_�assert_equal� assert_raises�assert_raises_regex�assert_array_equal�assert_almost_equal�assert_array_almost_equalc � � t j ddgddgg� � } t t | g d�d d �f t j � � � � t j t j d� � � dd� � � � }t |d d�t j d � � f |d d�d f j � � d S ) N� � � � )r r r �2 � � ���) �np�matrixr � isinstance�asmatrix�arange�reshaper �array�T)�m�xs �y/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/matrixlib/tests/test_interaction.py�test_fancy_indexingr s� � � � �A�q�6�A�q�6�"�#�#�A��J�q����A�A�A���� �2�2�3�3�3� ��B�I�b�M�M�)�)�!�R�0�0�1�1�A���2�A�2�r�x��|�|�#�$�a����B��i�k�2�2�2�2�2� c �� � ddg} ddg}t j | | g� � }t j j � || |� � }t t |t j � � � � d S )Nr r r r )r r � polynomial� polyutils� mapdomainr r )�dom1�dom2r �ress r �test_polynomial_mapdomainr'