arrays - Java double[][] to double[] without copy -


i've got lot of old code big double[][] arrays , need flatten in double[] array new library usage. don't want copy, there simple way re-reference array in c?

it's impossible without copy.

  1. the memory double[][] not contiguous.

  2. the "rows" in double[][] refer double[] objects.

  3. the memory occupied double[] has contiguous.


Comments