jvx.numeric
Class PnPreconditionerILU
- java.lang.Object
-
- jvx.numeric.PnPreconditioner
-
- jvx.numeric.PnPreconditionerILU
-
public class PnPreconditionerILU extends PnPreconditioner
Perform an ILU Preconditioning.- 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 PnPreconditionerILU(PnSparseMatrix A)PnPreconditionerILU(PnSparseMatrix A, double initShift)
-
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 A)Set the matrix to use in the preconditionert.voidupdateDiag()Update the index of diagonal elements of the matrix-
Methods inherited from class jvx.numeric.PnPreconditioner
apply, applyTransposed
-
-
-
-
Constructor Detail
-
PnPreconditionerILU
public PnPreconditionerILU(PnSparseMatrix A)
-
PnPreconditionerILU
public PnPreconditionerILU(PnSparseMatrix A, double initShift)
-
-
Method Detail
-
setSparseMatrix
public void setSparseMatrix(PnSparseMatrix A)
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
-
updateDiag
public void updateDiag()
Update the index of diagonal elements of the matrix
-
-
"