luhenry / netlib

An high-performance, hardware-accelerated implementation of Netlib in Java
Other
60 stars 12 forks source link

possible incorrect index check error #19

Open philwalk opened 1 year ago

philwalk commented 1 year ago

It seems possible that the following error has root cause in this library: breeze Issue 850. The error might be a bug in dev.ludovic.netlib.blas.AbstractBLAS.checkIndex rather than breeze.

On line 295, the method is called with index==12, which is clearly beyond the end of the array, but the actual expression would seem to only require 11. Perhaps offsetb is incorrect, should it be offsetb -1?.