Class GenMinResEx7

java.lang.Object
com.imsl.test.example.math.GenMinResEx7
All Implemented Interfaces:
GenMinRes.Function

public class GenMinResEx7 extends Object implements GenMinRes.Function

Solves a small linear system with logging.

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. Logging is enabled so that intermediate output and a summary report are generated.
See Also:
  • Constructor Details

    • GenMinResEx7

      public GenMinResEx7()
  • Method Details

    • amultp

      public void amultp(double[] p, double[] z)
      Obtains the multiplication of the matrix a and the input p. The result is returned in z.
      Specified by:
      amultp in interface GenMinRes.Function
      Parameters:
      p - a double array with p.length=a[0].length
      z - a double array
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception