All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class linear_algebra.LUTest_f77

java.lang.Object
   |
   +----linear_algebra.LUTest_f77

public class LUTest_f77
extends Object
This class tests the LU_f77 methods. It
  1. Randomly generates numbers between randlow and randhigh and fills a matrix A with them.
  2. Randomly generates a vector x.
  3. Calculates the vector b = Ax.
  4. Performs a LU decomposition of A. (This tests LU_f77.dgefa_f77.)
  5. Solves the system Az = b in an effort to recover x. (This tests LU_f77.dgesl_f77.)
  6. Obtains an estimate of A^{-1} and compares AA^{-1} with the identity matrix. (This tests the matrix inverse portion of LU_f77.dgedi_f77.)
  7. Via LU_f77.dgefa_f77 and LU_f77.dgedi_f77, obtains the determinant, detval2, of transpose(R)R where R is upper triangular, and compares it with detval1 = the square of the product of the diagonal elements of R. (This tests the determinant portion of LU_f77.dgedi_f77.)


Constructor Index

 o LUTest_f77()

Method Index

 o main(String[])

Constructors

 o LUTest_f77
 public LUTest_f77()

Methods

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index