maspack.solvers
Class CRSolver
java.lang.Object
maspack.solvers.CRSolver
- All Implemented Interfaces:
- IterativeSolver
public class CRSolver
- extends java.lang.Object
- implements IterativeSolver
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRSolver
public CRSolver()
getMaxIterations
public int getMaxIterations()
- Specified by:
getMaxIterations
in interface IterativeSolver
getNumIterations
public int getNumIterations()
- Specified by:
getNumIterations
in interface IterativeSolver
getRelativeResidual
public double getRelativeResidual()
- Specified by:
getRelativeResidual
in interface IterativeSolver
getTolerance
public double getTolerance()
- Specified by:
getTolerance
in interface IterativeSolver
getToleranceType
public IterativeSolver.ToleranceType getToleranceType()
- Specified by:
getToleranceType
in interface IterativeSolver
isCompatible
public boolean isCompatible(int matrixType)
- Specified by:
isCompatible
in interface IterativeSolver
setMaxIterations
public void setMaxIterations(int max)
- Specified by:
setMaxIterations
in interface IterativeSolver
setTolerance
public void setTolerance(double tol)
- Specified by:
setTolerance
in interface IterativeSolver
setToleranceType
public void setToleranceType(IterativeSolver.ToleranceType type)
- Specified by:
setToleranceType
in interface IterativeSolver
solve
public boolean solve(VectorNd x,
LinearTransformNd A,
VectorNd b,
double tol,
int maxIter,
LinearTransformNd P)
solve
public boolean solve(VectorNd x,
LinearTransformNd A,
VectorNd b,
double tol,
int maxIter)
solve
public boolean solve(VectorNd x,
LinearTransformNd A,
VectorNd b)
- Specified by:
solve
in interface IterativeSolver