Defined in File LinearSolver.hpp
public NetworKit::ConjugateGradient< Matrix, Preconditioner >
(Template Class ConjugateGradient)
public NetworKit::Lamg< Matrix >
(Template Class Lamg)
Abstract base class for solvers that solve linear systems.
Subclassed by NetworKit::ConjugateGradient< Matrix, Preconditioner >, NetworKit::Lamg< Matrix >
Public Functions
Construct an abstract solver with the given tolerance. The relative residual ||Ax-b||/||b|| should be less than or equal to tolerance after the solver finished.
tolerance –
Sets the solver up for the specified matrix.
matrix –
Sets the solver up for the Laplacian matrix of the graph specified.
graph –
Sets the solver up for the specified matrix where the underlying graph has to be connected.
matrix –
Sets the solver up for the Laplacian matrix of the graph specified. The graph has to be connected.
graph –
Abstract solve function that computes result for the given right-hand side rhs and the matrix that has been setup in setup.
rhs –
result –
maxConvergenceTime –
maxIterations –
A SolverStatus object which provides some statistics like the final absolute residual.
Abstract parallel solve function that computes the results for the matrix currently setup and the right-hand sides rhs. The maximum spent time for each system can be specified by maxConvergenceTime and the maximum number of iterations can be set by maxIterations.
Note
If the solver does not support parallelism during solves, this function falls back to solving the systems sequentially.
rhs –
results –
maxConvergenceTime –
maxIterations –
A vector of SolverStatus objects for each right hand side.
Abstract parallel solve function that computes and processes results using resultProcessor for the matrix currently setup and the right-hand sides (size of rhsSize) provided by rhsLoader. The maximum spent time for each system can be specified by maxConvergenceTime and the maximum number of iterations can be set by maxIterations.
Note
If the solver does not support parallelism during solves, this function falls back to solving the systems sequentially.
rhsLoader –
resultProcessor –
rhsSize –
maxConvergenceTime –
maxIterations –
Protected Attributes