Package com.nr.la

Examples of com.nr.la.QRdcmp.solve()


      fail("*** QRdcmp: Matrix aqr.qt is not orthogonal");
     
    }

    ranvec(r);
    aqr.solve(r,y);
    localflag = maxel(vecsub(matmul(a,y),r)) > sbeps;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** QRdcmp: Error in solve() method");
     
View Full Code Here


    double[][] aa = NRUtil.buildMatrix(3,3, a);
    double[] b = new double[]{2.0, 4.0,1.0};
    double[] x = new double[3];

    QRdcmp qr = new QRdcmp(aa);
    qr.solve(b, x);
    System.out.println(NRUtil.toString(x));
  }
}
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.