User`s guide
Matrix Math Example
• On UNIX, execute the getfactor classfileasfollows:
java -classpath
.:
matlabroot/java/jar/toolbox/javabuilder.jar:
./distrib/factormatrix.jar
-Djava.library.path=
matlabroot/bin/<Arch>./distrib
getfactor 4
% where <Arch> = glux86 gluxa64 sol2
Note The supported JRE version is 1.5.0. To find out what JRE you are using,
refer to the output of
'version -java' in MATLAB o r refer to the jre.cfg file
in
matlabroot/sys/java/jre/<arch> or mcrroot/sys/java/jre/<arch>.
Output for the Matrix Math Example
Original matrix:
2-100
-1 2 -1 0
0-1 2-1
00-12
Cholesky factorization:
1.4142 -0.7071 0 0
0 1.2247 -0.8165 0
0 0 1.1547 -0.8660
0 0 0 1.1180
LU factorization:
L matrix:
1.0000000
-0.5000 1.0000 0 0
0 -0.6667 1.0000 0
0 0 -0.7500 1.0000
U matrix:
2.0000 -1.0000 0 0
5-23