linear_algebra
Class LUTest_j

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

public class LUTest_j
extends java.lang.Object

This class tests the LU_j 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_j.dgefa_j.)
  5. Solves the system Az = b in an effort to recover x. (This tests LU_j.dgesl_j.)
  6. Obtains an estimate of A^{-1} and compares AA^{-1} with the identity matrix. (This tests the matrix inverse portion of LU_j.dgedi_j.)
  7. Via LU_j.dgefa_j and LU_j.dgedi_j, 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_j.dgedi_j.)


Constructor Summary
LUTest_j()
           
 
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

LUTest_j

public LUTest_j()
Method Detail

main

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