Represents a sparse linear solver that uses the standard conjugate gradient algorithm.
SystemObject Extreme.Mathematics.AlgorithmsManagedIterativeAlgorithmDenseVector Extreme.Mathematics.LinearAlgebra.IterativeSolversIterativeSparseSolver Extreme.Mathematics.LinearAlgebra.IterativeSolversConjugateGradientSolver
Namespace: Extreme.Mathematics.LinearAlgebra.IterativeSolversAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public class ConjugateGradientSolver : IterativeSparseSolver
Public Class ConjugateGradientSolver
Inherits IterativeSparseSolver
public ref class ConjugateGradientSolver : public IterativeSparseSolver
type ConjugateGradientSolver =
class
inherit IterativeSparseSolver
end
The ConjugateGradientSolver type exposes the following members.
Top
Top
Top
Use the ConjugateGradientSolver class to solve large, symmetric sparse
systems of equations using the Conjugate Gradient (CG) method. Convergence can be erratic,
and sometimes may break down completely.
To solve a system of equations using this class, construct a new instance, passing the matrix of
the system to the constructor.
You can optionally set a preconditioner by setting the
Preconditioner property. By default, a JacobiPreconditioner
is used. Finally, the Solve(Vector) method solves the system.
Once the algorithm finished, the Status property indicates
whether the algorithm completed successfully.
Numerical Libraries
Supported in: 5.x, 4.x
Reference