For normal dense matrix laid out as a double[] and accessed directly as i* N_ROW + j probably won&#x27;t get its loop check elided. For double[][] I would _think_ that happens more easily.<p>But how are sparse matrices then generally laid out? A naive approach would be some hash map, perhaps with some locality, in which I don&#x27;t see JIT problems.