I'm trying to create a very large matrix, but it does not fit in the java heap memory (it consumes up to 8gb of memory using the -xmx
command).
It is a matrix of around 3 million x 3 million, but it only has 0's and 1's, and is of type byte.
byte [][] uniones = new byte [nube.length][nube.length];
is there any way to get a light matrix?