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
- Randomly generates numbers between randlow and randhigh
and fills a matrix A with them.
- Randomly generates a vector x.
- Calculates the vector b = Ax.
- Performs a LU decomposition of A.
(This tests LU_f77.dgefa_f77.)
- Solves the system Az = b in an effort to recover x.
(This tests LU_f77.dgesl_f77.)
- 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.)
- 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.)
-
LUTest_f77()
-
-
main(String[])
-
LUTest_f77
public LUTest_f77()
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index