3535
3636# JIT-compatible K0 approximation for modified Bessel function
3737# nopython friendly version of K03 which is in usefulsubs.py
38- @jit (nopython = True , cache = True )
38+ @jit (nopython = True , cache = True , fastmath = True )
3939def _K03_jit (x ):
4040 """
4141 JIT-compatible approximation of modified Bessel function K0(x).
@@ -66,7 +66,7 @@ def _K03_jit(x):
6666 return np .sqrt (np .pi / (2.0 * x )) * np .exp (- x )
6767
6868
69- @jit (nopython = True , cache = True )
69+ @jit (nopython = True , cache = True , fastmath = True )
7070def _Vint_jit (Qyk , y , alphae , alphah , Delta0 , N1 , N2 , Ny ):
7171 """JIT-compiled version of Vint calculation."""
7272 Vint_val = 0.0
@@ -782,7 +782,7 @@ def GetEps1Dqw(alphae, alphah, Delta0, epsr, me, mh, n1D, q, w):
782782###############################################################################
783783
784784
785- @jit (nopython = True , parallel = True )
785+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
786786def _CalcMVeh_core (p , Veh , MVeh , k3 , UnDel ):
787787 """Core JIT-compiled computation for CalcMVeh."""
788788 N = p .shape [0 ]
@@ -809,7 +809,7 @@ def _CalcMVeh_core(p, Veh, MVeh, k3, UnDel):
809809 )
810810
811811
812- @jit (nopython = True , parallel = True )
812+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
813813def _BGRenorm_core (ne , nh , Vee , Vhh , BGR , UnDel ):
814814 """Core JIT-compiled computation for BGRenorm."""
815815 N = len (ne )
@@ -830,7 +830,7 @@ def _BGRenorm_core(ne, nh, Vee, Vhh, BGR, UnDel):
830830 BGR [k , kp ] = - sum_hh - sum_ee
831831
832832
833- @jit (nopython = True , parallel = True )
833+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
834834def _EeRenorm_core (ne , Vee , BGR , UnDel ):
835835 """Core JIT-compiled computation for EeRenorm."""
836836 N = len (ne )
@@ -862,7 +862,7 @@ def _EeRenorm_core(ne, Vee, BGR, UnDel):
862862 )
863863
864864
865- @jit (nopython = True , parallel = True )
865+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
866866def _EhRenorm_core (nh , Vhh , BGR , UnDel ):
867867 """Core JIT-compiled computation for EhRenorm."""
868868 N = len (nh )
@@ -894,7 +894,7 @@ def _EhRenorm_core(nh, Vhh, BGR, UnDel):
894894 )
895895
896896
897- @jit (nopython = True , parallel = True )
897+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
898898def _MBCE2_core (ne , nh , Veh2 , Vee2 , Win , Wout , k3 , Ceh , Cee ):
899899 """Core JIT-compiled computation for MBCE2."""
900900 Nk = len (ne ) - 1
@@ -953,7 +953,7 @@ def _MBCE2_core(ne, nh, Veh2, Vee2, Win, Wout, k3, Ceh, Cee):
953953 )
954954
955955
956- @jit (nopython = True , parallel = True )
956+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
957957def _MBCE_core (ne , nh , Veh2 , Vee2 , Win , Wout , k3 , Ceh , Cee ):
958958 """Core JIT-compiled computation for MBCE (identical to MBCE2)."""
959959 Nk = len (ne ) - 1
@@ -1012,7 +1012,7 @@ def _MBCE_core(ne, nh, Veh2, Vee2, Win, Wout, k3, Ceh, Cee):
10121012 )
10131013
10141014
1015- @jit (nopython = True , parallel = True )
1015+ @jit (nopython = True , parallel = True , fastmath = True , cache = True )
10161016def _MBCH_core (ne , nh , Veh2 , Vhh2 , Win , Wout , k3 , Ceh , Chh ):
10171017 """Core JIT-compiled computation for MBCH."""
10181018 Nk = len (ne ) - 1
0 commit comments