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)


double[][]array = ??{{1.,2.,3},{4.,5.,6.},{7.,8.,10.}};
Matrix A = new Matrix(array);
Matrix b = Matrix.random(3,1);
Matrix x = A.solve(b);
Matrix r = A.times(x).minus(b);
double rnorm = r.normInf();



© 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