public abstract class AbstractLSQR extends Object
Constructor and Description |
---|
AbstractLSQR() |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
beta(double[] x,
double alfa,
double beta)
Calculates beta.
|
protected abstract double |
bnorm()
Calculates bnorm.
|
protected abstract Integer |
getColumns() |
protected abstract double[] |
iter(double bnorm,
double[] target)
Perform LSQR iteration.
|
LSQRResult |
solve(double damp,
double atol,
double btol,
double conlim,
double iterLim,
boolean calcVar,
double[] x0)
Solves given Sparse Linear Systems.
|
public LSQRResult solve(double damp, double atol, double btol, double conlim, double iterLim, boolean calcVar, double[] x0)
damp
- Damping coefficient.atol
- Stopping tolerances, if both (atol and btol) are 1.0e-9 (say), the final residual norm should be
accurate to about 9 digits.btol
- Stopping tolerances, if both (atol and btol) are 1.0e-9 (say), the final residual norm should be
accurate to about 9 digits.conlim
- Another stopping tolerance, LSQR terminates if an estimate of cond(A) exceeds conlim.iterLim
- Explicit limitation on number of iterations (for safety).calcVar
- Whether to estimate diagonals of (A'A + damp^2*I)^{-1}.x0
- Initial value of x.protected abstract double bnorm()
protected abstract double beta(double[] x, double alfa, double beta)
x
- X value.alfa
- Alfa value.beta
- Beta value.protected abstract double[] iter(double bnorm, double[] target)
bnorm
- Bnorm value.target
- Target value.protected abstract Integer getColumns()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024