Ë
    0Ò^jc  ã                   óP   — d dl mZ d dlmZ d dlmZ  G d„ d«      Z G d„ d«      Zy)	é    )Úassert_allclose)Úcython_lapack)Úlapackc                   ó   — e Zd Zd„ Zd„ Zd„ Zy)Ú	TestLamchc                 óŒ   — t        j                  ddd¬«      }dD ]'  }t        t        j                  |«       ||«      «       Œ) y )NÚlamchÚfloat32Ú	preferred©ÚdtypeÚilp64©
ó   eó   só   bó   pó   nó   ró   mó   uó   ló   o)r   Úget_lapack_funcsr   r   Ú_test_slamch)ÚselfÚlapack_slamchÚcs      úp/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/scipy/linalg/tests/test_cython_lapack.pyÚtest_slamchzTestLamch.test_slamch   sH   € Ü×/Ñ/Ø˜9¨Kô
ˆð Nò 	.ˆAÜœM×6Ñ6°qÓ9Ù)¨!Ó,õ.ñ	.ó    c                 óŒ   — t        j                  ddd¬«      }dD ]'  }t        t        j                  |«       ||«      «       Œ) y )Nr	   Úfloat64r   r   r   )r   r   r   r   Ú_test_dlamch)r   Úlapack_dlamchr   s      r   Útest_dlamchzTestLamch.test_dlamch   sH   € Ü×/Ñ/Ø˜9¨Kô
ˆð Nò 	.ˆAÜœM×6Ñ6°qÓ9Ù)¨!Ó,õ.ñ	.r!   c                 óŒ   — d}d}t        t        j                  ||«      d«       t        t        j                  ||«      d«       y )Ny      à?      ð?y      ì?       @y333333ÿ?š™™™™™¹?)r   r   Ú_test_zladivÚ_test_cladiv)r   ÚcxÚcys      r   Útest_complex_ladivzTestLamch.test_complex_ladiv   s:   € ØˆØˆÜœ×2Ñ2°2°rÓ:¸IÔFÜœ×2Ñ2°2°rÓ:¸IÕFr!   N)Ú__name__Ú
__module__Ú__qualname__r    r&   r,   © r!   r   r   r      s   „ ò.ò.óGr!   r   c                   ó   — e Zd ZdZd„ Zy)ÚTestBlasInta9  Test for blas_int/blas_bint types used in cython_blas/cython_lapack.

    Note similar test is in test_blas.py: both cython_blas.pyx and cython_lapack.pyx
    define the types, so we smoke test that `blas_int` and `blas_bint` types
    can be cimported from both `cython_blas` and `cython_lapack` extensions.
    c                 óÜ   — ddl m} t        j                  «       }|d   d   d   }|r|dk(  sJ d|› d�«       ‚|d	k(  sJ d
|› d�«       ‚t        j                  «       }|r|dk(  sJ ‚y|dk(  sJ ‚y)zDVerify blas_int and blas_bint sizes matches the build configuration.r   )ÚCONFIGzBuild DependenciesÚblaszcython blas ilp64é   zILP64 build but blas_int is z bytesé   zLP64 build but blas_int is )r6   r7   )r7   r7   N)Úscipy.__config__r4   r   Ú_blas_int_sizeÚ_blas_bint_bint_sizes)r   r4   ÚsizeÚcython_blas_ilp64Ú
bint_sizess        r   Útest_blas_int_sizezTestBlasInt.test_blas_int_size(   s’   € å+Ü×+Ñ+Ó-ˆØ"Ð#7Ñ8¸Ñ@ÐATÑUÐÙØ˜1’9ÐIÐ <¸T¸FÀ&ÐIÓI�9à˜1’9ÐHÐ ;¸D¸6ÀÐHÓH�9ô #×8Ñ8Ó:ˆ
ÙØ Ò'Ð'Ñ'à Ò'Ð'Ñ'r!   N)r-   r.   r/   Ú__doc__r>   r0   r!   r   r2   r2       s   „ ñó(r!   r2   N)Únumpy.testingr   Úscipy.linalgr   r   r   r2   r0   r!   r   ú<module>rB      s$   ðÝ )Ý 7Ý ÷Gñ G÷4(ò (r!   