Package org.encog.mathutil.matrices.decomposition

Examples of org.encog.mathutil.matrices.decomposition.QRDecomposition


        {21,22,23,24},
        {25,27,28,29},
        {37,33,31,30} };
    Matrix matrix2 = new Matrix(m2);
   
    QRDecomposition c = new QRDecomposition(matrix1);
    Matrix mx = c.solve(matrix2);
   
    Assert.assertEquals(17.0, mx.get(0,0));
    Assert.assertEquals(22.0, mx.get(1,1));
    Assert.assertEquals(28.0, mx.get(2,2));
    Assert.assertEquals(4, mx.getRows());
View Full Code Here


   */
  public final Matrix solve(final Matrix b) {
    if (getRows() == getCols()) {
      return (new LUDecomposition(this)).solve(b);
    } else {
      return (new QRDecomposition(this)).solve(b);
    }
  }
View Full Code Here

   */
  public Matrix solve(final Matrix b) {
    if (getRows() == getCols()) {
      return (new LUDecomposition(this)).solve(b);
    } else {
      return (new QRDecomposition(this)).solve(b);
    }
  }
View Full Code Here

        {21,22,23,24},
        {25,27,28,29},
        {37,33,31,30} };
    Matrix matrix2 = new Matrix(m2);
   
    QRDecomposition c = new QRDecomposition(matrix1);
    Matrix mx = c.solve(matrix2);
   
    Assert.assertEquals(17.0, mx.get(0,0));
    Assert.assertEquals(22.0, mx.get(1,1));
    Assert.assertEquals(28.0, mx.get(2,2));
    Assert.assertEquals(4, mx.getRows());
View Full Code Here

TOP

Related Classes of org.encog.mathutil.matrices.decomposition.QRDecomposition

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.