Skip to content

Commit

Permalink
Try const qualifying vec and mat memoryviews
Browse files Browse the repository at this point in the history
  • Loading branch information
jjerphan committed Nov 17, 2021
1 parent 03aa496 commit 7a51f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/neighbors/_dist_metrics.pxd
Expand Up @@ -51,8 +51,8 @@ cdef class DistanceMetric:
# Because we don't expect to instantiate a lot of these objects, the
# extra memory overhead of this setup should not be an issue.
cdef DTYPE_t p
cdef DTYPE_t[::1] vec
cdef DTYPE_t[:, ::1] mat
cdef const DTYPE_t[::1] vec
cdef const DTYPE_t[:, ::1] mat
cdef ITYPE_t size
cdef object func
cdef object kwargs
Expand Down

0 comments on commit 7a51f24

Please sign in to comment.