docstring to _ncut_cy.pys

This commit is contained in:
Vighnesh Birodkar
2014-07-23 04:12:23 +05:30
parent 273b9d081e
commit 9c8b1efd26
+12
View File
@@ -7,6 +7,18 @@ import numpy as np
def argmin2(cnp.float64_t[:] array):
"""Return the index of the 2nd smallest value in an array.
Parameters
----------
a : array
The array to process.
Returns
-------
i : int
The index of the second smallest value.
"""
cdef cnp.float64_t min1 = np.inf
cdef cnp.float64_t min2 = np.inf
cdef Py_ssize_t i1 = 0