All Packages Class Hierarchy This Package Previous Next Index
Class linear_algebra.CholTest
java.lang.Object
|
+----linear_algebra.CholTest
- public class CholTest
- extends Object
This class tests the Cholesky decomposition class
and the Triangular solve/invert class.
It
- Randomly generates numbers between randlow and randhigh
and fills a lower triangular matrix R with them. Note that
randlow and randhigh should be of the same sign. Otherwise it
would be possible for R not to be of full rank.
- Obtains the positive definite matrix A = RR´.
- Randomly generates a vector x.
- Calculates the vector b = Ax.
- Performs a Cholesky decomposition of A in an effort to
recover R. (This tests Cholesky.factorPosDef.)
- Solves the system Az = b in an effort to recover x.
(This tests Cholesky.solvePosDef, Triangular.solveLower,
and Triangular.solveUpper.)
- Obtains an estimate of A^{-1} and compares A^{-1}A with the
identity matrix. (This tests Cholesky.invertPosDef and
Triangular.invertLower.)
- Obtains the inverse of an upper triangular matrix and compares
the product of this inverse and the original upper triangular matrix
with the identity matrix. (This tests Triangular.invertUpper.)
-
CholTest()
-
-
main(String[])
-
CholTest
public CholTest()
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index