o
    *ฮฎc  ใ                   @   s   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ eddg d	ขZeddg d
ขZeddg dขZeddg dขZdd Zdd ZdS )้    )ฺ	unchanged)ฺMul)ฺMatrix)ฺMatrixSymbol)ฺ
DotProduct)ฺraises้   ้   )r	   ้   r   )r	   r   ้   ้   )r	   r
   r   r   r
   )r	   r
   r   r   c                   C   sช   t tt ก dksJ t tjt ก dksJ t ttj ก dks#J t tjtj ก dks0J ttdd  ttdd  ttdd  ttdd  ttdd  d S )N้   c                   S   s
   t dtS ฉNr	   ฉr   ฺAฉ r   r   ๚W/tmp/pip-target-vg8gfxp4/lib/python/sympy/matrices/expressions/tests/test_dotproduct.pyฺ<lambda>   ๓   
 z!test_docproduct.<locals>.<lambda>c                   S   s
   t tdS r   r   r   r   r   r   r      r   c                   S   ๓
   t ttS ฉN)r   r   ฺDr   r   r   r   r      r   c                   S   r   r   )r   r   r   r   r   r   r   r      r   c                   S   s   t tt ก S r   )r   ฺBฺCฺdoitr   r   r   r   r      s    )r   r   r   r   ฺTr   ฺ	TypeErrorr   r   r   r   ฺtest_docproduct   s   r   c                  C   s   t ddd} t ddd}t| |}|jdksJ ttd|s J ||  | d |d  | d |d   | d	 |d	   |  ks@J d S )
Nr   r   r	   r   Tr
   )r   r   )r	   r   )r
   r   )r   r   ฺ	is_scalarr   r   )r   r   ฺdotr   r   r   ฺtest_dotproduct_symbolic   s   
Dr    N)ฺsympy.core.exprr   ฺsympy.core.mulr   ฺsympy.matricesr   ฺ"sympy.matrices.expressions.matexprr   ฺ%sympy.matrices.expressions.dotproductr   ฺsympy.testing.pytestr   r   r   r   r   r   r    r   r   r   r   ฺ<module>   s    