Examples of solve()


Examples of org.ejml.alg.block.linsol.qr.BlockQrHouseHolderSolver.solve()

        BlockMatrix64F B = BlockMatrixOps.createRandom(4,2,-1,1,rand,3);
        BlockMatrix64F B_orig = B.copy();
        BlockMatrix64F X = new BlockMatrix64F(A.numRows,B.numCols,3);

        solver.solve(B,X);

        boolean modified = !MatrixFeatures.isEquals(B_orig,B);

        assertTrue(modified == solver.modifiesB());
    }
View Full Code Here

Examples of org.ejml.alg.dense.linsol.AdjustableLinearSolver.solve()

        solver.removeRowFromA(y.numRows-1);

        // compute the adjusted solution
        y.numRows--;
        DenseMatrix64F x_adj = new DenseMatrix64F(4,1);
        solver.solve(y,x_adj);

        // The solution should still be the same
        assertTrue(MatrixFeatures.isIdentical(x,x_adj,1e-8));
    }
View Full Code Here

Examples of org.ejml.alg.dense.linsol.lu.LinearSolverLu.solve()

        assertTrue(CommonOps.solve(a,b,c));
        LUDecompositionAlt alg = new LUDecompositionAlt();
        LinearSolverLu solver = new LinearSolverLu(alg);
        assertTrue(solver.setA(a));

        solver.solve(b,c_exp);

        EjmlUnitTests.assertEquals(c_exp,c,1e-8);
    }

    @Test
View Full Code Here

Examples of org.ejml.factory.LinearSolver.solve()

        solver.setA(B);

        boolean converged = false;

        for( int i = 0; i < maxIterations && !converged; i++ ) {
            solver.solve(q0,q1);
            double s = NormOps.normPInf(q1);
            CommonOps.divide(s,q1,q2);

            converged = checkConverged(A);
        }
View Full Code Here

Examples of org.encog.mathutil.matrices.decomposition.CholeskyDecomposition.solve()

        {25,27,28,29},
        {37,33,31,30} };
    Matrix matrix2 = new Matrix(m2);
   
    CholeskyDecomposition c = new CholeskyDecomposition(matrix1);
    c.solve(matrix2);

    Matrix mx = c.getL();
   
    Assert.assertEquals(1.0, mx.get(0,0));
    Assert.assertEquals(1.0, mx.get(1,1));
View Full Code Here

Examples of org.encog.mathutil.matrices.decomposition.LUDecomposition.Solve()

      if (!decomposition.isNonsingular()) {
        continue;
      }

      // Solve using LU (or SVD) decomposition
      this.deltas = decomposition.Solve(this.gradient);

      // Update weights using the calculated deltas
      updateWeights();

      // Calculate the new error
View Full Code Here

Examples of org.encog.mathutil.matrices.decomposition.QRDecomposition.solve()

        {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

Examples of org.integratedmodelling.riskwiz.jtree.JTSolver.Solve()

            JTSolver solver = new JTSolver();

            solver.initialize(network, new StrongJoinTreeCompiler());
   
            // find the optimum actions
            solver.Solve()
   
            // show polices
            Set<BNNode> nodes = network.vertexSet();

            for (BNNode node : nodes) {
View Full Code Here

Examples of org.integratedmodelling.riskwiz.jtree.JTSolverPN.Solve()

            JTSolverPN solver = new JTSolverPN();

            solver.initialize(network, new StrongJoinTreeCompiler());
   
            // find the optimum actions
            solver.Solve()
   
            JTInferencePN inference = solver.getPolicyNetworkInference();
   
            inference.run();
View Full Code Here

Examples of org.jquantlib.math.solvers1D.Bisection.solve()

      }
    };

    final Bisection bisection = new Bisection();

    double root = bisection.solve(f, accuracy, guess, xMin, xMax);

    // assertEquals(1.0, root, accuracy);
    if (Math.abs(1.0-root)> accuracy) {
      fail("expected: 1.0" + " but root is: " + root);
    }
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.