507508509510511512513514515516517
// general M*N matrix VectorMatrixMN mmn=new VectorMatrixMN(6 ,7); // permuted matrix PermutedMatrix pmm=new PermutedMatrix(mmn, Indexz.createRandomPermutation(mmn.rowCount()), Indexz.createRandomPermutation(mmn.columnCount())); doGenericTests(pmm); doGenericTests(pmm.subMatrix(1, 4, 1, 5)); }
1617181920212223242526
assertEquals(0,mt.columnCount()); } @Test public void testCreateMN() { VectorMatrixMN m=new VectorMatrixMN(0,3); assertEquals(0,m.rowCount()); assertEquals(3,m.columnCount()); AMatrix mt=m.getTranspose(); assertEquals(0,mt.columnCount()); }