Matrix-Profile icon indicating copy to clipboard operation
Matrix-Profile copied to clipboard

Offset of buffer can not be >= Integer.MAX_VALUE

Open mactsouk opened this issue 4 years ago • 1 comments

Hello.

Working with a TimeSeries of size 50.000, I got the next error message (Exception):

Exception in thread "main" java.lang.IllegalArgumentException: Offset of buffer can not be >= Integer.MAX_VALUE at org.nd4j.linalg.api.ndarray.BaseNDArray.offset(BaseNDArray.java:5216) at org.nd4j.linalg.api.ndarray.BaseNDArray.subArray(BaseNDArray.java:2558) at org.nd4j.linalg.api.ndarray.BaseNDArray.get(BaseNDArray.java:5013) at io.github.ensozos.utils.CustomOperations.centeredMovingMinimum(CustomOperations.java:67) at io.github.ensozos.core.MPdistance.getMPdistance(MPdistance.java:59) at Main.main(Main.java:138)

Is it a fault (restriction) of nd4j? Is it something else?

Thanks for your time!

mactsouk avatar Jul 09 '21 11:07 mactsouk

Yes, I think it's an issue with nd4j.

ensozos avatar Jul 14 '21 07:07 ensozos