Class LUTest_f77


public class LUTest_f77
extends java.lang.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 Summary
Method Summary
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public LUTest_f77()
Method Detail


public static void main(java.lang.String[] args)