Package stallone.algebra

Examples of stallone.algebra.RealLinearSystem


    // Algorithms
    //
    /////////////////////////////////////////////////////////////////////////////
    public ILinearSystem linearSolver(final IDoubleArray A, final IDoubleArray b)
    {
        final ILinearSystem system = new RealLinearSystem();
        system.setCoefficientVector(b);
        system.setMatrix(A);

        return system;
    }
View Full Code Here


        return getNames(LinearSystemEnum.values());
    }

    public ILinearMatrixSystem linearMatrixSolver(final IDoubleArray A, final IDoubleArray B)
    {
        final ILinearMatrixSystem system = new RealLinearSystem();
        system.setCoefficientMatrix(B);
        system.setMatrix(A);

        return system;
    }
View Full Code Here

    public ILinearSystem linearSolver(IDoubleArray A, IDoubleArray b, String algoName)
    {
        ILinearSystem linearSystem = null;
        if (algoName.equals(LinearSystemEnum.DENSE_QR.name()))
        {
            linearSystem = new RealLinearSystem();
        }
        else if (algoName.equals(LinearSystemEnum.SPARSE_MTJ_CG.name()))
        {
            linearSystem = new RealSparseLinearSystem(RealSparseLinearSystem.CG);
        }
View Full Code Here

TOP

Related Classes of stallone.algebra.RealLinearSystem

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.