Package mikera.matrixx.impl

Examples of mikera.matrixx.impl.PermutationMatrix.innerProduct()


  @Test
  public void testPermutationMatrix() {
    PermutationMatrix p = PermutationMatrix.createRandomPermutation(10);

    assertTrue(p.innerProduct(p.getTranspose()).isIdentity());

    try {
      p = PermutationMatrix.create(0, 1, 2, 2, 4);
      fail("Should not be able to create PermutationMatrix with invalid permutation");
    } catch (Throwable t) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.