I am using UJMP matrix package for my research work. I try to add a normal matrix with sparse matrix as per my research requirement.
Matrix Bigomega = Matrix.Factory.zeros(31037, 31037);
Matrix omega = SparseMatrix.Factory.zeros(31037, 31037);
//some code block
Bigomega = Bigomega.plus(omega);
I got this error:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at org.ujmp.core.doublematrix.impl.DefaultDenseDoubleMatrix2D.(DefaultDenseDoubleMatrix2D.java:64) at org.ujmp.core.doublematrix.factory.DefaultDenseDoubleMatrix2DFactory.zeros(DefaultDenseDoubleMatrix2DFactory.java:34) at org.ujmp.core.doublematrix.factory.DefaultDenseDoubleMatrix2DFactory.zeros(DefaultDenseDoubleMatrix2DFactory.java:30) at org.ujmp.core.doublematrix.stub.AbstractDenseDoubleMatrix2D.plus(AbstractDenseDoubleMatrix2D.java:121) at Part1ujmp.main(Part1ujmp.java:66)
Can any one answer me what is the maximum dimension a UJMP matrix can held?
I think this error came because I don't have sufficient memory space.
Can any one specifically discuss about this error. why it is came and is there any way to get rid of it?
Thanks is advance