Package com.imsl.test.example.math
Class GenMinResEx1
java.lang.Object
com.imsl.test.example.math.GenMinResEx1
- All Implemented Interfaces:
GenMinRes.Function
Solves a small linear system with the Generalized Minimum Residual (GMRES) method.
A solution to a small linear system is found. The coefficient matrix is stored as a full matrix and no preconditioning is used. Typically, preconditioning is required to achieve convergence in a reasonable number of iterations.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GenMinResEx1
public GenMinResEx1()
-
-
Method Details
-
amultp
public void amultp(double[] p, double[] z) Obtains the multiplication of the matrixaand the inputp. The result is returned inz.- Specified by:
amultpin interfaceGenMinRes.Function- Parameters:
p- adoublearray withp.length=a[0].lengthz- adoublearray
-
main
- Throws:
Exception
-