Hi There!
I'm using the EJML library and I have this error java.lang.NegativeArraySizeException
public class LargeMatrixMultTest {
public static void main(String[] args) {
Random rand = new Random();
SimpleMatrix A = SimpleMatrix.random64(1, 202210, 0, 1, rand);
SimpleMatrix B = SimpleMatrix.random64(1, 202210, 0, 1, rand);
A.transpose().mult(B).get(0);
}
}
Exception in thread "main" java.lang.NegativeArraySizeException
at org.ejml.data.DMatrixRMaj.<init>(DMatrixRMaj.java:123)
at org.ejml.simple.SimpleMatrix.<init>(SimpleMatrix.java:163)
at org.ejml.simple.SimpleMatrix.createMatrix(SimpleMatrix.java:339)
at org.ejml.simple.SimpleMatrix.createMatrix(SimpleMatrix.java:88)
at org.ejml.simple.SimpleBase.mult(SimpleBase.java:157)
I know that there is a big matrix.. but I really use a bigger one and I don't this problem (663 x 50000)
Thanks Peter!