Package mikera.matrixx.solve.impl

Examples of mikera.matrixx.solve.impl.CholeskyLDUSolver


    double[][] dataB = {{17},{97},{320}};
    Matrix b = Matrix.create(dataB);
//    Matrix x = Matrix.createRandom(3, 1);
    Matrix x;

        CholeskyLDUSolver solver = new CholeskyLDUSolver();
        assertTrue(solver.setA(A));
        Matrix A_inv_result = solver.invert().toMatrix();
        x = solver.solve(b).toMatrix();

        double[][] data_A_inv_expected = {{1.453515, -0.199546, -0.013605},
                          {-0.199546, 0.167800, -0.034014},
                          {-0.013605, -0.034014, 0.020408}};
        Matrix A_inv_expected = Matrix.create(data_A_inv_expected);
View Full Code Here

TOP

Related Classes of mikera.matrixx.solve.impl.CholeskyLDUSolver

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.