§
    ÈÁ³g  ã                   óH   — d dl Z d dlZddlmZ  G d„ dej        ¦  «        ZdS )é    Né   )Úutilc                   óv  — e Zd Z ej        dddd¦  «         ej        dddd¦  «         ej        dddd¦  «         ej        dddd¦  «         ej        dddd¦  «         ej        dddd	¦  «        gZej        j        d
„ ¦   «         Z	ej        j        d„ ¦   «         Z
ej        j        d„ ¦   «         Zej        j        d„ ¦   «         Zej        j        d„ ¦   «         Zej        j        d„ ¦   «         Zej        j        d„ ¦   «         Zej        j        d„ ¦   «         Zej        j        d„ ¦   «         Zd„ Zd„ Zd„ ZdS )ÚTestParametersÚtestsÚsrcÚ	parameterzconstant_real.f90zconstant_integer.f90zconstant_both.f90zconstant_compound.f90zconstant_non_compound.f90zconstant_array.f90c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S ©Né   ©Údtypeé   é   )é   r   r   )	ÚnpÚarangeÚfloat32ÚpytestÚraisesÚ
ValueErrorÚmoduleÚ
foo_singleÚallclose©ÚselfÚxs     ú]/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/numpy/f2py/tests/test_parameter.pyÚtest_constant_real_singlez(TestParameters.test_constant_real_single   ó‘   € õ ŒI�a�rœzÐ*Ñ*Ô*¨3¨3¨Q¨3Ô/ˆÝŒ•j $¤+Ô"8¸!Ñ<Ô<Ð<õ ŒI�a�rœzÐ*Ñ*Ô*ˆØŒ×Ò˜qÑ!Ô!Ð!ÝŒ{˜1Ð3Ð3Ð3Ñ4Ô4Ð4Ð4Ð4Ð4Ð4ó    c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S r   )	r   r   Úfloat64r   r   r   r   Ú
foo_doubler   r   s     r   Útest_constant_real_doublez(TestParameters.test_constant_real_double   r    r!   c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S )Nr   r   r   r   )é   r   r   )	r   r   Úint32r   r   r   r   Úfoo_compound_intr   r   s     r   Útest_constant_compound_intz)TestParameters.test_constant_compound_int)   s‘   € õ ŒI�a�rœxÐ(Ñ(Ô(¨¨¨1¨Ô-ˆÝŒ•j $¤+Ô">ÀÑBÔBÐBõ ŒI�a�rœxÐ(Ñ(Ô(ˆØŒ×$Ò$ QÑ'Ô'Ð'ÝŒ{˜1Ð3Ð3Ð3Ñ4Ô4Ð4Ð4Ð4Ð4Ð4r!   c                 ó¬   — t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S )Né   r   )é   r   r   r   )r   r   r(   r   Úfoo_non_compound_intr   r   s     r   Útest_constant_non_compound_intz-TestParameters.test_constant_non_compound_int4   sU   € õ ŒI�a�rœxÐ(Ñ(Ô(ˆØŒ×(Ò(¨Ñ+Ô+Ð+ÝŒ{˜1Ð:Ð:Ð:Ñ;Ô;Ð;Ð;Ð;Ð;Ð;r!   c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S r   )	r   r   r(   r   r   r   r   Úfoo_intr   r   s     r   Útest_constant_integer_intz(TestParameters.test_constant_integer_int;   s‘   € õ ŒI�a�rœxÐ(Ñ(Ô(¨¨¨1¨Ô-ˆÝŒ•j $¤+Ô"5°qÑ9Ô9Ð9õ ŒI�a�rœxÐ(Ñ(Ô(ˆØŒ×Ò˜AÑÔÐÝŒ{˜1Ð3Ð3Ð3Ñ4Ô4Ð4Ð4Ð4Ð4Ð4r!   c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S r   )	r   r   Úint64r   r   r   r   Úfoo_longr   r   s     r   Útest_constant_integer_longz)TestParameters.test_constant_integer_longF   s‘   € õ ŒI�a�rœxÐ(Ñ(Ô(¨¨¨1¨Ô-ˆÝŒ•j $¤+Ô"6¸Ñ:Ô:Ð:õ ŒI�a�rœxÐ(Ñ(Ô(ˆØŒ×Ò˜QÑÔÐÝŒ{˜1Ð3Ð3Ð3Ñ4Ô4Ð4Ð4Ð4Ð4Ð4r!   c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S ©Nr   r   r   r   )é   r   r   )	r   r   r#   r   r   r   r   Úfoor   r   s     r   Útest_constant_bothz!TestParameters.test_constant_bothQ   sŽ   € õ ŒI�a�rœzÐ*Ñ*Ô*¨3¨3¨Q¨3Ô/ˆÝŒ•j $¤+¤/°1Ñ5Ô5Ð5õ ŒI�a�rœzÐ*Ñ*Ô*ˆØŒ�Š˜ÑÔÐÝŒ{˜1ÐGÐGÐGÑHÔHÐHÐHÐHÐHÐHr!   c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S r8   )	r   r   r#   r   r   r   r   Úfoo_nor   r   s     r   Útest_constant_nozTestParameters.test_constant_no\   s‘   € õ ŒI�a�rœzÐ*Ñ*Ô*¨3¨3¨Q¨3Ô/ˆÝŒ•j $¤+Ô"4°aÑ8Ô8Ð8õ ŒI�a�rœzÐ*Ñ*Ô*ˆØŒ×Ò˜1ÑÔÐÝŒ{˜1ÐGÐGÐGÑHÔHÐHÐHÐHÐHÐHr!   c                 óH  — t          j        dt           j        ¬¦  «        d d d…         }t          j        t
          | j        j        |¦  «         t          j        dt           j        ¬¦  «        }| j                             |¦  «         t          j        |g d¢¦  «        sJ ‚d S r8   )	r   r   r#   r   r   r   r   Úfoo_sumr   r   s     r   Útest_constant_sumz TestParameters.test_constant_sumg   s‘   € õ ŒI�a�rœzÐ*Ñ*Ô*¨3¨3¨Q¨3Ô/ˆÝŒ•j $¤+Ô"5°qÑ9Ô9Ð9õ ŒI�a�rœzÐ*Ñ*Ô*ˆØŒ×Ò˜AÑÔÐÝŒ{˜1ÐGÐGÐGÑHÔHÐHÐHÐHÐHÐHr!   c                 óN  — t          j        dt           j        ¬¦  «        }t          j        dt           j        ¬¦  «        }| j                             ||¦  «        }t          j        |g d¢¦  «        sJ ‚t          j        |g d¢¦  «        sJ ‚t          j        |d¦  «        sJ ‚d S )Nr   r   é   )ç        gš™™™™™¹?gš™™™™™É?)rD   g      $@g      4@g      >@g      D@g      3@)r   r   r#   r   Ú	foo_arrayr   )r   r   ÚyÚzs       r   Útest_constant_arrayz"TestParameters.test_constant_arrayr   s¡   € ÝŒI�a�rœzÐ*Ñ*Ô*ˆÝŒI�a�rœzÐ*Ñ*Ô*ˆØŒK×!Ò! ! QÑ'Ô'ˆÝŒ{˜1Ð1Ð1Ð1Ñ2Ô2Ð2Ð2Ð2ÝŒ{˜1Ð?Ð?Ð?Ñ@Ô@Ð@Ð@Ð@ÝŒ{˜1˜dÑ#Ô#Ð#Ð#Ð#Ð#Ð#r!   c                 óÒ   — t          j        dt           j        ¬¦  «        }| j                             |¦  «        }t          j        ||                     dd¬¦  «        ¦  «        sJ ‚d S )Nr   r   )r   r   ÚF)Úorder)r   r   r#   r   Úfoo_array_any_indexr   Úreshape)r   r   rF   s      r   Útest_constant_array_any_indexz,TestParameters.test_constant_array_any_indexz   s[   € ÝŒI�a�rœzÐ*Ñ*Ô*ˆØŒK×+Ò+¨AÑ.Ô.ˆÝŒ{˜1˜aŸiši¨°c˜iÑ:Ô:Ñ;Ô;Ð;Ð;Ð;Ð;Ð;r!   c                 óH   — | j                              ¦   «         }|dk    sJ ‚d S )Né	   )r   Úfoo_array_delimsr   s     r   Útest_constant_array_delimsz)TestParameters.test_constant_array_delims   s&   € ØŒK×(Ò(Ñ*Ô*ˆØ�AŠvˆvˆvˆvˆvˆvr!   N)Ú__name__Ú
__module__Ú__qualname__r   ÚgetpathÚsourcesr   ÚmarkÚslowr   r%   r*   r/   r2   r6   r;   r>   rA   rH   rN   rR   © r!   r   r   r      s   € € € € € ð 	ˆŒ�W˜e [Ð2EÑFÔFØˆŒ�W˜e [Ð2HÑIÔIØˆŒ�W˜e [Ð2EÑFÔFØˆŒ�W˜e [Ð2IÑJÔJØˆŒ�W˜e [Ð2MÑNÔNØˆŒ�W˜e [Ð2FÑGÔGð€Gð „[Ôð5ð 5ñ Ôð5ð „[Ôð5ð 5ñ Ôð5ð „[Ôð5ð 5ñ Ôð5ð „[Ôð<ð <ñ Ôð<ð „[Ôð5ð 5ñ Ôð5ð „[Ôð5ð 5ñ Ôð5ð „[ÔðIð Iñ ÔðIð „[ÔðIð Iñ ÔðIð „[ÔðIð Iñ ÔðIð$ð $ð $ð<ð <ð <ð
ð ð ð ð r!   r   )r   Únumpyr   Ú r   ÚF2PyTestr   rZ   r!   r   ú<module>r^      sl   ðØ €€€à Ð Ð Ð à Ð Ð Ð Ð Ð ðyð yð yð yð y�T”]ñ yô yð yð yð yr!   