�
��gE � � � d dl mZ d dlmZ d dlmZ G d� de� � Z e� � Zed� � � Zdd�Z d � d
� e dfd�Z
dd
�Zd� Zd� Z
d� ZdS )� )�contextmanager)�local��
expand_mulc � � e Zd Zd� ZdS )�DotProdSimpStatec � � d | _ d S �N)�state)�selfs �h/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/sympy/matrices/utilities.py�__init__zDotProdSimpState.__init__ s
� ���
�
�
� N)�__name__�
__module__�__qualname__r � r r
r r s# � � � � � �� � � � r r c # �~ K � t j } | t _ d V � |t _ d S # |t _ w xY wr
��_dotprodsimp_stater )�x�olds r
�dotprodsimpr
sI � � � �
�
"�C�'�#$�� �
����#&�� � � ��3�� �&�&�&�&s �. �<Fc �( � ddl m} || |�� � S )z;Wrapper for simplify.dotprodsimp to avoid circular imports.r )r )�withsimp)�sympy.simplify.simplifyr )�exprr �dpss r
�_dotprodsimpr s) � �:�:�:�:�:�:��3�t�h�'�'�'�'r c � � | S r
r �r s r
�<lambda>r"