Package mikera.matrixx

Examples of mikera.matrixx.Matrix.determinant()


            if( Math.abs(c.y - 0) < 1e-8 ) {
                // test using the characteristic equation
                Matrix temp = Matrix.createIdentity(A.columnCount());
                temp.scale(c.x);
                temp.sub(a);
                double det = temp.determinant();

                // extremely crude test.  given perfect data this is probably considered a failure...  However,
                // its hard to tell what a good test value actually is.
                assertEquals(0, det, 0.1);
            }
View Full Code Here


  {
      int width = 10;

      Matrix A = Matrix.createRandom(width,width);

      double minorVal = A.determinant();

      AltLU alg = new AltLU();
      LUPResult result = alg._decompose(A);
      double luVal = result.computeDeterminant();
View Full Code Here

  @SuppressWarnings("unused")
  @Test
  public void testDeterminant() {
    Matrix m=Matrixx.createRandomSquareMatrix(8);
    double d=m.determinant();
  }
 
  @Test
  public void testDetEquivalence3() {
    Matrix m=Matrixx.createRandomSquareMatrix(3);
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.