Class GenMinResEx3

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

public class GenMinResEx3 extends Object implements GenMinRes.Function

Solves a small linear system stored in sparse form.

A solution to a small linear system in which the coefficient matrix has been stored in SparseMatrix form is found. An initial guess of all ones is set before solving the system.
See Also:
  • Constructor Details

    • GenMinResEx3

      public GenMinResEx3()
  • 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