Package com.imsl.math
Interface ConjugateGradient.Preconditioner
- All Superinterfaces:
ConjugateGradient.Function
- All Known Implementing Classes:
ConjugateGradientEx2
- Enclosing class:
- ConjugateGradient
Public interface for the user supplied function to
ConjugateGradient used for preconditioning.-
Method Summary
Modifier and TypeMethodDescriptionvoidpreconditioner(double[] r, double[] z) Used to compute \(z = M^{-1}r \) where M is the preconditioning matrix and r and z are arrays of lengthn, the order of matrix M.Methods inherited from interface com.imsl.math.ConjugateGradient.Function
amultp
-
Method Details
-
preconditioner
void preconditioner(double[] r, double[] z) Used to compute \(z = M^{-1}r \) where M is the preconditioning matrix and r and z are arrays of lengthn, the order of matrix M.- Parameters:
r- an inputdoublearray of lengthngenerated during the implementation of thesolvemethod.z- an outputdoublearray of lengthn.
-