public class PnPreconditioner
extends java.lang.Object
Setting the parameter dim larger than 1, allow to handle more than one equation system with the same matrix in one run. The first equation system uses the 0-th, dim-th, 2*dim-th, 3*dim-th,... entries of b, the second the 1-th, (1+dim)-th, (1+2*dim)-th, ... and so on.
Works on PnSparseMatrix.
Modifier and Type | Field and Description |
---|---|
PnSparseMatrix |
m_smat |
Constructor and Description |
---|
PnPreconditioner() |
Modifier and Type | Method and Description |
---|---|
PdVector |
apply(PdVector b,
PdVector x)
Apply the preconditioner to a given vector b storing the result in x
This method has to be implemented
|
PdVector |
apply(PdVector b,
PdVector x,
int dim)
Apply the preconditioner to a given vector b storing the result in x
using given dimension of vectors
This method has to be implemented
|
PdVector |
applyTransposed(PdVector b,
PdVector x)
Apply the preconditioner transposed to a given vector b storing the result in x
using given dimension of vectors
This method has to be implemented
|
PdVector |
applyTransposed(PdVector b,
PdVector x,
int dim)
Apply the preconditioner transposed to a given vector b storing the result in x
This method has to be implemented
|
void |
setSparseMatrix(PnSparseMatrix pm)
Set the matrix to use in the preconditionert.
|
public PnSparseMatrix m_smat
public void setSparseMatrix(PnSparseMatrix pm)
This method has to be implemented
pm
- public PdVector apply(PdVector b, PdVector x, int dim)
This method has to be implemented
b
- x
- dim
- public PdVector apply(PdVector b, PdVector x)
This method has to be implemented
b
- x
- public PdVector applyTransposed(PdVector b, PdVector x)
This method has to be implemented
b
- x
- "