| 0., 0., 0., 1.}, m);
}
@Test
public void testMultiply01() {
final Matrix4 m = new Matrix4(
1., 2., 3., 4.,
5., 6., 7., 8.,
9., 10, 11, 12,
13, 14, 15, 16);
final Matrix4 n = new Matrix4(
10., 20., 30., 40.,
50., 60., 70., 80.,
90., 100, 110, 120,
130, 140, 150, 160);
final Matrix4 r = m.multiply(n);
assertNotSame(m, r); // R is new
assertNotSame(n, r); // R is new
//Input is not changed
assertMatrixEquals(new double[]{
|