int j = 65536;
// Integer 65536 * 65536 overflows to 0
assertEquals(0, i * j);
ByteMatrix a = factory().createMatrix(i, j);
assertEquals(i, a.rows());
assertEquals(j, a.columns());
a.set(0, 0, (byte)42);
assertEquals(a.get(0, 0), 42);
a.set(i - 1, j - 1, (byte)7);
assertEquals(a.get(i - 1, j - 1), 7);
// Since values and Indices array sizes are align'd with CCSMatrix and
// CRSMatrix.MINIMUM_SIZE (=32), we need to set more than 32 values.
for (int row = 0; row < 32; row++) {
a.set(row, 1, (byte)3);
}
}