There was an error while loading. Please reload this page.
1 parent 0ebcaff commit 5e77aa7Copy full SHA for 5e77aa7
1 file changed
mdaencore/clustering/affinityprop.pyx
@@ -96,7 +96,7 @@ def AffinityPropagation(s, preference, float lam, int max_iterations, int conver
96
97
# Prepare input and ouput arrays
98
cdef numpy.ndarray[numpy.float32_t, ndim=1] matndarray = numpy.ascontiguousarray(s._elements, dtype=numpy.float32)
99
- cdef numpy.ndarray[long, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.dtype("long"))
+ cdef numpy.ndarray[numpy.int64_t, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.int64)
100
101
# run C module Affinity Propagation
102
iterations = CAffinityPropagation(<float*>matndarray.data, cn, lam, max_iterations, convergence, noise, <long*>clusters.data)
0 commit comments