← Back
Editing: _matfuncs.cpython-311.pyc
� d�c�a � � � d dl mZ d dlZd dlmZmZmZmZmZm Z m Z mZmZm Z mZmZ d dlmZ d dlmZmZ ddlmZ ddlmZmZ dd lmZ dd lmZ ddlm Z m!Z! ddl"m#Z#m$Z$ dd l%m&Z& ddl'm(Z(m)Z) g d�Z* ej+ d� � j, Z, ej+ d� � j, Z-ddd dd dd�Z.d� Z/d#d�Z0d� Z1d$d�Z2d� Z3d� Z4d� Z5d� Z6d� Z7d� Z8d� Z9d� Z:d$d �Z;d$d!�Z<d"� Z=dS )%� )�productN)�Inf�dot�diag�prod�logical_not�ravel� transpose� conjugate�absolute�amax�sign�isfinite)�sqrt)�LinAlgError� bandwidth� )�norm)�solve�inv)�triu)�svd)�schur�rsf2csf)�expm_frechet� expm_cond)�sqrtm)�pick_pade_structure�pade_UV_calc)�expm�cosm�sinm�tanm�coshm�sinhm�tanhm�logm�funm�signmr �fractional_matrix_powerr r � khatri_rao�d�f)�i�lr- r, �F�Dc � � t j | � � } t | j � � dk s| j d | j d k rt d� � �| S )a� Wraps asarray with the extra requirement that the input be a square matrix. The motivation is that the matfuncs module has real functions that have been lifted to square matrix functions. Parameters ---------- A : array_like A square matrix. Returns ------- out : ndarray An ndarray copy or view or other representation of A. � r r z expected square array_like input)�np�asarray�len�shape� ValueError��As �8/usr/lib/python3/dist-packages/scipy/linalg/_matfuncs.py�_asarray_squarer<