public class CRSolver extends java.lang.Object implements IterativeSolver
IterativeSolver.ToleranceType
Constructor and Description |
---|
CRSolver() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxIterations() |
int |
getNumIterations() |
double |
getRelativeResidual() |
double |
getTolerance() |
IterativeSolver.ToleranceType |
getToleranceType() |
boolean |
isCompatible(int matrixType) |
void |
setMaxIterations(int max) |
void |
setTolerance(double tol) |
void |
setToleranceType(IterativeSolver.ToleranceType type) |
boolean |
solve(VectorNd x,
LinearTransformNd A,
VectorNd b) |
boolean |
solve(VectorNd x,
LinearTransformNd A,
VectorNd b,
double tol,
int maxIter) |
boolean |
solve(VectorNd x,
LinearTransformNd A,
VectorNd b,
double tol,
int maxIter,
LinearTransformNd P) |
public int getMaxIterations()
getMaxIterations
in interface IterativeSolver
public int getNumIterations()
getNumIterations
in interface IterativeSolver
public double getRelativeResidual()
getRelativeResidual
in interface IterativeSolver
public double getTolerance()
getTolerance
in interface IterativeSolver
public IterativeSolver.ToleranceType getToleranceType()
getToleranceType
in interface IterativeSolver
public boolean isCompatible(int matrixType)
isCompatible
in interface IterativeSolver
public void setMaxIterations(int max)
setMaxIterations
in interface IterativeSolver
public void setTolerance(double tol)
setTolerance
in interface IterativeSolver
public void setToleranceType(IterativeSolver.ToleranceType type)
setToleranceType
in interface IterativeSolver
public boolean solve(VectorNd x, LinearTransformNd A, VectorNd b, double tol, int maxIter, LinearTransformNd P)
public boolean solve(VectorNd x, LinearTransformNd A, VectorNd b, double tol, int maxIter)
public boolean solve(VectorNd x, LinearTransformNd A, VectorNd b)
solve
in interface IterativeSolver