Package mikera.matrixx.solve.impl.lu

Examples of mikera.matrixx.solve.impl.lu.LUSolver.solve()


      A.checkSquare();
      LUSolver solver = new LUSolver();
      solver.setA(A);
//      create AMatrix from AVector
      AMatrix B = b.asColumnMatrix();
      AMatrix X = solver.solve(B);
//      if no solution
      if(X == null)
          return null;
      return X.asVector();
  }
View Full Code Here


     */
  private static AMatrix solveSquare(AMatrix A, AMatrix B) {
    A.checkSquare();
    LUSolver solver = new LUSolver();
    solver.setA(A);
    return solver.solve(B);
  }

}
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.