Ë
    Ýbi†
  ã                   ó:   — d Z ddlmZmZ ddlmZ  G d„ de«      Zy)a,  
Copyright 2013 Steven Diamond

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
é    )ÚConstantÚVariable)ÚBaseTestc                   óJ   — e Zd ZdZed	d„«       Zd	d„Zd	d„Zd	d„Zd	d„Z	d	d„Z
y)
ÚTestSignz+ Unit tests for the expression/sign class. Nc                 ó‚   — t        d«      | _        t        d«      | _        t        d«      | _        t	        «       | _        y )Né   éÿÿÿÿr   )r   ÚposÚnegÚzeror   Úunknown©Úselfs    úP/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/cvxpy/tests/test_sign.pyÚ
setUpClasszTestSign.setUpClass   s,   € ä˜A“;ˆŒÜ˜B“<ˆŒÜ˜Q“KˆŒ	Ü“zˆó    c                 ó<  — | j                  | j                  | j                  z   j                  | j                  j                  «       | j                  | j                  | j
                  z   j                  | j                  j                  «       | j                  | j                  | j                  z   j                  | j                  j                  «       | j                  | j                  | j
                  z   j                  | j                  j                  «       y ©N)ÚassertEqualr   r   Úsignr   r   r   s    r   Útest_addzTestSign.test_add   s²   € Ø×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·\±\×5FÑ5FÔGØ×Ñ˜$Ÿ(™( T§Y¡YÑ.×4Ñ4°d·h±h·m±mÔDØ×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·X±X·]±]ÔCØ×Ñ˜$Ÿ,™,¨¯©Ñ2×8Ñ8¸$¿,¹,×:KÑ:KÕLr   c                 ó®  — | j                  | j                  | j                  z
  j                  | j                  j                  «       | j                  | j                  | j                  z
  j                  | j                  j                  «       | j                  | j                  | j                  z
  j                  | j
                  j                  «       y r   )r   r   r   r   r   r   r   s    r   Útest_subzTestSign.test_sub$   s…   € Ø×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·X±X·]±]ÔCØ×Ñ˜$Ÿ(™( T§Y¡YÑ.×4Ñ4°d·h±h·m±mÔDØ×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·\±\×5FÑ5FÕGr   c                 óæ  — | j                  | j                  | j                  z  j                  | j                  j                  «       | j                  | j                  | j                  z  j                  | j                  j                  «       | j                  | j                  | j
                  z  j                  | j
                  j                  «       | j                  | j                  | j                  z  j                  | j                  j                  «       | j                  | j                  | j                  z  j                  | j                  j                  «       | j                  | j
                  | j
                  z  j                  | j                  j                  «       | j                  | j                  | j                  z  j                  | j                  j                  «       y r   )r   r   r   r   r   r   r   s    r   Ú	test_multzTestSign.test_mult)   s1  € Ø×Ñ˜$Ÿ)™) d§h¡hÑ.×4Ñ4°d·i±i·n±nÔEØ×Ñ˜$Ÿ,™,¨¯©Ñ1×7Ñ7¸¿¹×9JÑ9JÔKØ×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·X±X·]±]ÔCØ×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·X±X·]±]ÔCØ×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·X±X·]±]ÔCØ×Ñ˜$Ÿ(™( T§X¡XÑ-×3Ñ3°T·X±X·]±]ÔCØ×Ñ˜$Ÿ)™) d§l¡lÑ2×8Ñ8¸$¿)¹)¿.¹.ÕIr   c                 óð   — | j                  | j                   j                  | j                  j                  «       | j                  | j                   j                  | j                  j                  «       y r   )r   r   r   r   r   r   s    r   Útest_negzTestSign.test_neg2   sJ   € Ø×Ñ˜4Ÿ9™9˜*×*Ñ*¨D¯I©I¯N©NÔ;Ø×Ñ˜4Ÿ8™8˜)×)Ñ)¨4¯8©8¯=©=Õ9r   c                 ó   — | j                   j                  «       sJ ‚| j                  j                  «       rJ ‚| j                  j                  «       rJ ‚| j                  j                  «       sJ ‚| j                   j                  «       rJ ‚| j                  j                  «       sJ ‚| j                  j                  «       rJ ‚| j                  j                  «       sJ ‚| j                  j                  «       sJ ‚| j                  j                  «       rJ ‚| j                  j                  «       s| j                  j                  «       rJ ‚y r   )r   Ú	is_nonnegr   r   r   Ú	is_nonposÚis_zeror   s    r   Útest_is_signzTestSign.test_is_sign7   s  € Øx‰x×!Ñ!Ô#Ð#Ð#Ø—8‘8×%Ñ%Ô'Ð'Ð'Ø—<‘<×)Ñ)Ô+Ð+Ð+Øy‰y×"Ñ"Ô$Ð$Ð$à—8‘8×%Ñ%Ô'Ð'Ð'Øx‰x×!Ñ!Ô#Ð#Ð#Ø—<‘<×)Ñ)Ô+Ð+Ð+Øy‰y×"Ñ"Ô$Ð$Ð$ày‰y× Ñ Ô"Ð"Ð"Ø—8‘8×#Ñ#Ô%Ð%Ð%à—L‘L×*Ñ*Ô,°·±×0FÑ0FÔ0HÐIÐIÐ0Hr   )ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úclassmethodr   r   r   r   r   r#   © r   r   r   r      s4   „ Ù5Øò"ó ð"óMóHó
Jó:ô
Jr   r   N)r(   Úcvxpyr   r   Úcvxpy.tests.base_testr   r   r*   r   r   ú<module>r-      s    ðñ÷  %Ý *ô0Jˆxõ 0Jr   