示例#1
0
 // solves the positive definite sparse linear system Ax = b using sparse QR factorization
 public DenseMatrixDouble solveLeastNormal(ref SparseMatrixDouble A, ref DenseMatrixDouble b)
 {
     LinearSystemGenericByLib linearSolver = new LinearSystemGenericByLib();
     linearSolver.FactorizationQR(ref A);
     DenseMatrixDouble x = null;
     linearSolver.FreeSolver();
     return x;
 }
示例#2
0
 // solves the positive definite sparse linear system Ax = b using sparse Cholesky factorization
 public DenseMatrixDouble solvePositiveDefinite(ref SparseMatrixDouble A, ref DenseMatrixDouble b)
 {
     LinearSystemGenericByLib linearSolver = new LinearSystemGenericByLib();
     linearSolver.FactorizationCholesky(ref A);
     DenseMatrixDouble x = null;
     linearSolver.FreeSolver();
     return x;
 }
示例#3
0
        // solves the positive definite sparse linear system Ax = b using sparse QR factorization
        public DenseMatrixDouble solveLeastNormal(ref SparseMatrixDouble A, ref DenseMatrixDouble b)
        {
            LinearSystemGenericByLib linearSolver = new LinearSystemGenericByLib();

            linearSolver.FactorizationQR(ref A);
            DenseMatrixDouble x = null;

            linearSolver.FreeSolver();
            return(x);
        }
示例#4
0
        // solves the positive definite sparse linear system Ax = b using sparse Cholesky factorization
        public DenseMatrixDouble solvePositiveDefinite(ref SparseMatrixDouble A, ref DenseMatrixDouble b)
        {
            LinearSystemGenericByLib linearSolver = new LinearSystemGenericByLib();

            linearSolver.FactorizationCholesky(ref A);
            DenseMatrixDouble x = null;

            linearSolver.FreeSolver();
            return(x);
        }
        // solves the positive definite sparse linear system Ax = b using sparse Cholesky factorization
        public void solveBackPositiveDefiniteInit(ref SparseMatrixDouble A)
        {
            linearSolver = new LinearSystemGenericByLib();
            linearSolver.FactorizationCholesky(ref A);

        }
示例#6
0
 // solves the positive definite sparse linear system Ax = b using sparse Cholesky factorization
 public void solveBackPositiveDefiniteInit(ref SparseMatrixDouble A)
 {
     linearSolver = new LinearSystemGenericByLib();
     linearSolver.FactorizationCholesky(ref A);
 }