gatagat / lap

Linear Assignment Problem solver (LAPJV/LAPMOD).
BSD 2-Clause "Simplified" License
218 stars 68 forks source link

lapmod input #16

Open MariosGr opened 5 years ago

MariosGr commented 5 years ago

Is the input of lapmod() supposed to be the a csr matrix? i.e. cc=cost.data ii=cost.indptr kk=cost.indices as defined by scipy (https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.html) ?

I have tried a few examples and I am getting strange results.

Also, is prepare_sparse_cost() supposed to convert a coo sparse matrix to csr?

gatagat commented 5 years ago

Please provide a test case reproducing the issue and let us know which version are you using.

You might find some additional information in #14.