Package mikera.matrixx.solve.impl.lu

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


   * @param b
   * @return
   */
  private static AVector solveSquare(AMatrix A, AVector b) {
      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


     * @param B
     * @return
     */
  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

    if (rc==3) return new Matrix33(m).inverse();
    throw new IllegalArgumentException(ErrorMessages.incompatibleShape(m));
  }
 
  static Matrix createLUPInverse(AMatrix m) {
    LUSolver lus = new LUSolver();
        lus.setA(m);
    return lus.invert().toMatrix();
  }
View Full Code Here

TOP

Related Classes of mikera.matrixx.solve.impl.lu.LUSolver

Copyright © 2018 www.massapicom. 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.