All Packages Class Hierarchy This Package Previous Next Index
Class linear_algebra.LUTest_j
java.lang.Object
|
+----linear_algebra.LUTest_j
- public class LUTest_j
- extends Object
This class tests the LU_j 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_j.dgefa_j.)
- Solves the system Az = b in an effort to recover x.
(This tests LU_j.dgesl_j.)
- 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.)
- 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.)
-
LUTest_j()
-
-
main(String[])
-
LUTest_j
public LUTest_j()
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index