�
��g�v � �� � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m
Z
mZ d dlm
Z
d dlmZ d d lmZ d
dlmZ d
dlmZmZ d
d
lmZ d
dlmZmZ d
dlmZmZ ddgiZd� Z G d� de� � Z!d� Z" G d� de!e� � Z#e#xZ$Z%e&fd�Z'e&fd�Z(d7d�Z)d� Z*d� Z+d� Z,d� Z-d � Z.d!� Z/ e
d"�#� � d$� � � Z0d8d&�Z1d'� Z2d%d(d)�d*�Z3d9d+�Z4d:d-�Z5d.� Z6d/� Z7d0� Z8 d;d3�Z9d<d5�Z:d6� Z;dS )=� N)�Basic)�S)�Symbol��sympify)�cos�sin)�doctest_depends_on)�sympy_deprecation_warning)�is_sequence� )�
ShapeError)� _cholesky�_LDLdecomposition)�
MatrixBase)�MutableRepMatrix� RepMatrix)�_lower_triangular_solve�_upper_triangular_solve)�symarray�numpyc � � | j S )zReturns True if x is zero.)�is_zero)�xs �d/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/sympy/matrices/dense.py�_iszeror s
� ��9�� c �� � e Zd ZdZdZdZdZed� � � Zd� Z d� Z
d� Zdd
�Zdd�Z
d� Zd
� Zej e_ ej e
_ ej e_ ej e_ dS )�DenseMatrixzJMatrix implementation based on DomainMatrix as the internal representationFg��Q�$@� c �N � t ddd�� � | � � � S )Nzy
The private _mat attribute of Matrix is deprecated. Use the
.flat() method instead.
z1.9z$deprecated-private-matrix-attributes)�deprecated_since_version�active_deprecations_target)r �flat��selfs r �_matzDenseMatrix._mat) s6 � �!�
� &+�'M�
�
�
�
� �y�y�{�{�r c � � | � |� dd� � |� dt � � |� dd� � �� � S )N�method�GE�
iszerofunc�try_block_diagF)r) r+ r, )�inv�getr )r&