@@ -48,7 +48,7 @@ cdef inline double dist_euclid(
4848 const double [:, :] pos,
4949 const int i,
5050 const int j,
51- ) nogil:
51+ ) noexcept nogil:
5252 cdef int d
5353 cdef double dist_squared = 0.0
5454 for d in range (dim):
@@ -61,7 +61,7 @@ cdef inline double dist_haversine(
6161 const double [:, :] pos,
6262 const int i,
6363 const int j,
64- ) nogil:
64+ ) noexcept nogil:
6565 # pos holds lat-lon in deg
6666 cdef double deg_2_rad = M_PI / 180.0
6767 cdef double diff_lat = (pos[0 , j] - pos[0 , i]) * deg_2_rad
@@ -80,7 +80,7 @@ ctypedef double (*_dist_func)(
8080 const double [:, :],
8181 const int ,
8282 const int ,
83- ) nogil
83+ ) noexcept nogil
8484
8585
8686cdef inline bint dir_test(
@@ -93,7 +93,7 @@ cdef inline bint dir_test(
9393 const int i,
9494 const int j,
9595 const int d,
96- ) nogil:
96+ ) noexcept nogil:
9797 cdef double s_prod = 0.0 # scalar product
9898 cdef double b_dist = 0.0 # band-distance
9999 cdef double tmp # temporary variable
@@ -122,13 +122,13 @@ cdef inline bint dir_test(
122122 return in_band and in_angle
123123
124124
125- cdef inline double estimator_matheron(const double f_diff) nogil:
125+ cdef inline double estimator_matheron(const double f_diff) noexcept nogil:
126126 return f_diff * f_diff
127127
128- cdef inline double estimator_cressie(const double f_diff) nogil:
128+ cdef inline double estimator_cressie(const double f_diff) noexcept nogil:
129129 return sqrt(fabs(f_diff))
130130
131- ctypedef double (* _estimator_func)(const double ) nogil
131+ ctypedef double (* _estimator_func)(const double ) noexcept nogil
132132
133133cdef inline void normalization_matheron(
134134 double [:] variogram,
0 commit comments