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 IterativeSolverpublic int getNumIterations()
getNumIterations in interface IterativeSolverpublic double getRelativeResidual()
getRelativeResidual in interface IterativeSolverpublic double getTolerance()
getTolerance in interface IterativeSolverpublic IterativeSolver.ToleranceType getToleranceType()
getToleranceType in interface IterativeSolverpublic boolean isCompatible(int matrixType)
isCompatible in interface IterativeSolverpublic void setMaxIterations(int max)
setMaxIterations in interface IterativeSolverpublic void setTolerance(double tol)
setTolerance in interface IterativeSolverpublic void setToleranceType(IterativeSolver.ToleranceType type)
setToleranceType in interface IterativeSolverpublic 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