pyLAPJV icon indicating copy to clipboard operation
pyLAPJV copied to clipboard

Simple example fails.

Open Sciss opened this issue 7 years ago • 0 comments

I'm running the minimalist example from here:

import numpy
import LAPJV
a = numpy.array([[1, 1, 1, 2], [3, 2, 4, 1], [4, 4, 2, 4], [2, 3, 3, 3]])
print LAPJV.lap(a)[1]

This fails with this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: negative dimensions are not allowed

I have converted the C code to Scala, and there it runs, but it produces a sub-optimal cost of 10.0 instead of the expected 6.0. Is this "normal", or should J-V also give optimal cost?

Sciss avatar Apr 28 '18 11:04 Sciss