Example #1
0
  @BeforeClass
  public static void buildTestingResources() {

    MAT_I = R2x2.newIdentity();
    MAT_J = R2x2.newSymplectic();
    MAT_2 = MAT_I.plus(MAT_I);
    MAT_R = R2x2.newRotation(Math.PI / 2.0);
  }
Example #2
0
  @Test
  public void testMatrixAddition() {
    R2x2 mat1 = R2x2.newIdentity();
    R2x2 mat2 = R2x2.newIdentity();

    R2x2 matSum = mat1.plus(mat2);

    Assert.assertTrue(matSum.isEquivalentTo(MAT_2));

    //	    System.out.println("\nThe matrix addition test");
    //	    System.out.println( matSum.toString() );
  }