관리-도구
편집 파일: test_linalg.cpython-37.pyc
B ��Fd,� � @ s~ d Z ddlmZmZmZ ddlZddlZddlZddlZddl Z ddl Zddl mZm Z mZmZmZmZmZ ddl mZmZmZmZmZ ddl mZ ddlmZmZmZmZmZ ddlm Z dd l!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ d d� Z,dd � Z-e&Z.d�dd�Z&dd� Z/dd� Z0dd� Z1ddddddhZ2G dd� de3�Z4d d!� Z5ej6�7d"� g Z8e8e5de4d#ed$d%gd&d'gge d(�ed%d$ge d(��e4d)ed$d%gd&d'gged(�ed%d$ged(��e4d*ed$d%gd&d'gged(�ed%d$d'gd&d'd+gged(��e4d,ed-d.gd/d0gged(�ed1d-ged(��e4d2ed-d.gd/d0gged(�ed1d-ged(��e4d3ed-d.gd/d0gged(�ed1d-d4gd5d6d7gged(��e4d8ej9d9ed(�ej9d:ed(�dhd;�e4d<ej9d9ed(��:ej�ej9d=ed(��:ej�dhd;�e4d>ej6�;d?d?�ej6�;d?��e4d@ej6�;dAdA�ej6�;dA��e4dBdAdCgdDdEggdCdAg�e4dFed$d%gd&d'gg�ed%d$g�j<�e4dGed$d%gd&d'gg�ed%d$g�j<�g �7 Z8e8e5de4dHed$d%d&gd&d'd+gge d(�ed%d$ge d(��e4dIed$d%gd&d'gdJd+gge d(�ed%d$d&ge d(��e4dKed$d%d&gd&d'd+gged(�ed%d$ged(��e4dLed$d%gd&d'gdJd+gged(�ed%d$d&ged(��e4dMedNdOdPgdQdRdSgged(�ed1d-ged(��e4dTedNdOgdPdUgdVdWgged(�ed1d-dPged(��e4dXedNdOdPgdQdRdSgged(�ed1d-ged(��e4dYedNdOgdPdUgdVdWgged(�ed1d-dPged(��e4dZedNdOdPgdQdRdSgged(�ed1d-gd[d\gged(��e4d]edNdOgdPdUgdVdWgged(�ed1d-gd[d\gd[d\gged(��e4d^ej6�;d?d_�ej6�;d?��e4d`ej6�;dAda�ej6�;dA��e4dbej6�;dadA�ej6�;da��e4dcej6�;ddE�ej6�;d�dhd;�e4ddej6�;dEd�ej6�;dE�dhd;�g�7 Z8e8e5de4deed$d%gd%d$gge d(�d�e4dfed$d%gd%d$gged(�d�e4dged$d.gdhdAgged(�d�e4died$d.gdhdAgged(�d�e4djej9d9ed(�ddhd;�e4dkdAdCgdCdAggd�e4dFed$d%gd%d$gg�d�e4dled$d%gd%d$gg�d�e4dmej6�;dAdA�d�g �7 Z8dndo� Z=e8e=� 7 Z8dpdq� Z>drds� Z?e8e?� 7 Z8e@� e@� fdtdu�ZAG dvdw� dwe3�ZBG dxdy� dye3�ZCG dzd{� d{e3�ZDG d|d}� d}e3�ZEG d~d� de3�ZFG d�d�� d�e3�ZGd�d�� ZHd�d�� ZIG d�d�� d�eBeE�ZJG d�d�� d�eBeE�ZKG d�d�� d�eBeE�ZLG d�d�� d�eBeE�ZMG d�d�� d�eBeE�ZNG d�d�� d�eBeE�ZOG d�d�� d�eB�ZPG d�d�� d�e3�ZQG d�d�� d�eBeC�ZRG d�d�� d�eBeE�ZSG d�d�� d�eBeC�ZTG d�d�� d�e3�ZUG d�d�� d�e3�ZVG d�d�� d�eDeG�ZWG d�d�� d�eDeG�ZXG d�d�� d�e3�ZYG d�d�� d�e3�ZZG d�d�� d�eY�Z[G d�d�� d�eY�Z\G d�d�� d�eY�Z]G d�d�� d�e3�Z^d�d�� Z_G d�d�� d�e3�Z`G d�d�� d�e3�Zad�d�� Zbd�d�� Zcd�d�� ZdG d�d�� d�e3�Zeefd�k� rze(� dS )�z# Test functions for linalg module � )�division�absolute_import�print_functionN)�array�single�double�csingle�cdouble�dot�identity)�multiply� atleast_2d�inf�asarray�matrix)�linalg)�matrix_power�norm�matrix_rank� multi_dot�LinAlgError)�_multi_dot_matrix_chain_order) �assert_�assert_equal� assert_raises�assert_array_equal�assert_almost_equal�assert_allclose�run_module_suite�dec�SkipTest�suppress_warningsc C s | p|S )N� )�a�br"