Skip to content

Commit 565410f

Browse files
authored
Merge pull request #225 from jorenham/optimize.linear_sum_assignment
`optimize`: complete `linear_sum_assignment`
2 parents 6f9ac4b + 0cd6efb commit 565410f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scipy-stubs/optimize/_lsap.pyi

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
from scipy._typing import Untyped
1+
import numpy as np
2+
import optype.numpy as onp
23

3-
def linear_sum_assignment(*args: Untyped, **kwargs: Untyped) -> Untyped: ...
4+
def linear_sum_assignment(
5+
cost_matrix: onp.ToFloat2D,
6+
maximize: onp.ToBool = False,
7+
) -> tuple[onp.Array1D[np.intp], onp.Array1D[np.intp]]: ...

0 commit comments

Comments
 (0)