public class GenMinResEx4 extends Object implements GenMinRes.Preconditioner
Solves a small linear system stored in sparse form with preconditioning.
A solution to a small linear system in which the coefficient matrix has been stored inSparseMatrix form is found. An initial guess of ones
is set before solving the system and preconditioning is used.| Constructor and Description |
|---|
GenMinResEx4() |
| 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) |
void |
preconditioner(double[] r,
double[] z)
Defines a preconditioning operation for the problem.
|
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 arraypublic void preconditioner(double[] r,
double[] z)
preconditioner in interface GenMinRes.Preconditionerr - z - Copyright © 2020 Rogue Wave Software. All rights reserved.