Skip to content

Commit 1f8ed89

Browse files
committed
COSMIT: two empty lines between functions
1 parent 40f4e94 commit 1f8ed89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sklearn/neighbors/dist_metrics.pxd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cdef inline DTYPE_t euclidean_dist(DTYPE_t* x1, DTYPE_t* x2,
2323
d += tmp * tmp
2424
return sqrt(d)
2525

26+
2627
cdef inline DTYPE_t euclidean_rdist(DTYPE_t* x1, DTYPE_t* x2,
2728
ITYPE_t size) except -1:
2829
cdef DTYPE_t tmp, d=0
@@ -31,15 +32,19 @@ cdef inline DTYPE_t euclidean_rdist(DTYPE_t* x1, DTYPE_t* x2,
3132
d += tmp * tmp
3233
return d
3334

35+
3436
cdef inline DTYPE_t euclidean_dist_to_rdist(DTYPE_t dist) except -1:
3537
return dist * dist
3638

39+
3740
cdef inline DTYPE_t euclidean_rdist_to_dist(DTYPE_t dist) except -1:
3841
return sqrt(dist)
3942

43+
4044
cdef int euclidean_cdist(DTYPE_t[:, ::1] X, DTYPE_t[:, ::1] Y,
4145
DTYPE_t[:, ::1] D) except -1
4246

47+
4348
######################################################################
4449
# DistanceMetric base class
4550
cdef class DistanceMetric:

0 commit comments

Comments
 (0)