jvx.numeric
Class PnPreconditionerJacobi
- java.lang.Object
-
- jvx.numeric.PnPreconditioner
-
- jvx.numeric.PnPreconditionerJacobi
-
public class PnPreconditionerJacobi extends PnPreconditioner
Perform a diagonal (Jacobi) preconditioning from the left to the a linear equation system smat.x=b.- Author:
- Jonas Hurrelmann
- Version:
- 02.12.05, 1.00 created (jh)
-
-
Field Summary
-
Fields inherited from class jvx.numeric.PnPreconditioner
m_smat
-
-
Constructor Summary
Constructors Constructor and Description PnPreconditionerJacobi(PnSparseMatrix smat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PdVectorapply(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 implementedPdVectorapplyTransposed(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 implementedvoidsetSparseMatrix(PnSparseMatrix pm)Set the matrix to use in the preconditionert.-
Methods inherited from class jvx.numeric.PnPreconditioner
apply, applyTransposed
-
-
-
-
Constructor Detail
-
PnPreconditionerJacobi
public PnPreconditionerJacobi(PnSparseMatrix smat)
-
-
Method Detail
-
setSparseMatrix
public void setSparseMatrix(PnSparseMatrix pm)
Description copied from class:PnPreconditionerSet the matrix to use in the preconditionert. The matrix has to be square.This method has to be implemented
- Overrides:
setSparseMatrixin classPnPreconditioner
-
apply
public PdVector apply(PdVector b, PdVector x, int dim)
Description copied from class:PnPreconditionerApply the preconditioner to a given vector b storing the result in x using given dimension of vectorsThis method has to be implemented
- Overrides:
applyin classPnPreconditioner- Returns:
- x
-
applyTransposed
public PdVector applyTransposed(PdVector b, PdVector x, int dim)
Description copied from class:PnPreconditionerApply the preconditioner transposed to a given vector b storing the result in xThis method has to be implemented
- Overrides:
applyTransposedin classPnPreconditioner- Returns:
- x
-
-
"