Basic HTML version of Foils prepared
December 6 98
Foil 4 Typical JAMA Code
From
JAMA Java Matrix Classes for Java Grande Forum SC98 Orlando Java Grande Panel --
November 13 98
.
by
Cleve Moler (The MathWorks)
1
double[][]array = ??{{1.,2.,3},{4.,5.,6.},{7.,8.,10.}};
2
Matrix A = new Matrix(array);
3
Matrix b = Matrix.random(3,1);
4
Matrix x = A.solve(b);
5
Matrix r = A.times(x).minus(b);
6
double rnorm = r.normInf();
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sun Dec 6 1998