313314315316317318319320321322
assertFalse(Matrixx.createRandomSquareMatrix(3).isSymmetric()); } @Test public void testRowMatrix() { RowMatrix rm = RowMatrix.wrap(Vector.of(1, 2, 3)); assertEquals(rm.transposeInnerProduct(rm.toMatrix()), rm.getTranspose() .innerProduct(rm)); }
581582583584585586587588
doGenericTests(ScalarMatrix.create(5,0.0)); doGenericTests(ScalarMatrix.create(5,2.0).subMatrix(1, 3, 1, 3)); } @Test public void g_RowMatrix() { doGenericTests(new RowMatrix(Vector.of(1,2,3,4))); doGenericTests(new RowMatrix(Vector3.of(1,2,3))); }