public class GenMinResEx1 extends Object implements 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 and Description |
|---|
GenMinResEx1() |
| Modifier and Type | Method and Description |
|---|---|
void |
amultp(double[] p,
double[] z)
Obtains the multiplication of the matrix
a and the input
p. |
static void |
main(String[] args) |
public void amultp(double[] p,
double[] z)
a and the input
p. The result is returned in z.amultp in interface GenMinRes.Functionp - a double array with
p.length=a[0].lengthz - a double arrayCopyright © 2020 Rogue Wave Software. All rights reserved.