Parallel Colt 0.7.2

cern.colt.matrix.tfloat.algo.solver
Interface FloatIterativeSolver

All Known Implementing Classes:
AbstractFloatIterativeSolver, FloatBiCG, FloatBiCGstab, FloatCG, FloatCGLS, FloatCGS, FloatChebyshev, FloatGMRES, FloatHyBR, FloatIR, FloatMRNSD, FloatQMR

public interface FloatIterativeSolver

Iterative linear solver. Solves Ax=b for x, and it supports preconditioning and convergence monitoring.


Method Summary
 FloatIterationMonitor getIterationMonitor()
          Gets the iteration monitor
 FloatPreconditioner getPreconditioner()
          Gets preconditioner
 void setIterationMonitor(FloatIterationMonitor iter)
          Sets iteration monitor
 void setPreconditioner(FloatPreconditioner M)
          Sets preconditioner
 FloatMatrix1D solve(FloatMatrix2D A, FloatMatrix1D b, FloatMatrix1D x)
          Solves the given problem, writing result into the vector.
 

Method Detail

solve

FloatMatrix1D solve(FloatMatrix2D A,
                    FloatMatrix1D b,
                    FloatMatrix1D x)
                    throws IterativeSolverFloatNotConvergedException
Solves the given problem, writing result into the vector.

Parameters:
A - Matrix of the problem
b - Right hand side
x - Solution is stored here. Also used as initial guess
Returns:
The solution vector x
Throws:
IterativeSolverFloatNotConvergedException

setPreconditioner

void setPreconditioner(FloatPreconditioner M)
Sets preconditioner

Parameters:
M - Preconditioner to use

getPreconditioner

FloatPreconditioner getPreconditioner()
Gets preconditioner

Returns:
Current preconditioner

setIterationMonitor

void setIterationMonitor(FloatIterationMonitor iter)
Sets iteration monitor

Parameters:
iter - Iteration monitor

getIterationMonitor

FloatIterationMonitor getIterationMonitor()
Gets the iteration monitor

Returns:
Current iteration monitor

Parallel Colt 0.7.2

Jump to the Parallel Colt Homepage