+
    Y°³j  ã                   ó(   € R t ^RIHtHt ^ RItR tR# )a  
This module calculates the reduction ratio for trust-region methods.

Translated from Zaikun Zhang's modern-Fortran reference implementation in PRIMA.

Dedicated to late Professor M. J. D. Powell FRS (1936--2015).

Python translation by Nickolai Belakovski.
)Ú	DEBUGGINGÚREALMAXNc                óJ  € \         '       d
   V^ 8¼  g   Q h\        P                  ! V 4      '       d	   \        ) pM¿\        P                  ! V4      '       g   V^ 8:  d   V ^ 8”  d   V^,          pM‹\        ) pMƒ\        P                  ! V4      '       d    \        P                  ! V 4      '       d   ^pMH\        P                  ! V4      '       d%   \        P
                  ! V 4      '       d	   \        ) pMW,          p\         '       d   \        P                  ! V4      '       d   Q hV# )z`
This function evaluates the reduction ratio of a trust-region step, handling inf/nan properly.
)r   ÚnpÚisnanr   ÚisposinfÚisneginf)ÚaredÚpredÚrshrinkÚratios   &&& Úe/home/luca/screen-checking/.venv/lib/python3.14/site-packages/scipy/_external/pyprima/common/ratio.pyÚredratr      sÅ   € ÷ ƒyØ˜!Œ|Ðˆ|ô 
‡x‚x�‡~‚~ä�‰Ü	�Š�$�Š˜4 1œ9ð �!Œ8à˜A•I‰Eô �H‰EÜ	�Š�T×	Ò	œrŸ{š{¨4×0Ò0Ø‰Ü	�Š�T×	Ò	œrŸ{š{¨4×0Ò0Ü�‰à•	ˆ÷ ƒyÜ—8’8˜E—?’?Ð"Ð"Ø€Ló    )Ú__doc__Úconstsr   r   Únumpyr   r   © r   r   Ú<module>r      s   ðñ÷ 'Û ô(r   