Skip to content

Commit 5ba290b

Browse files
author
Tobias Weimer
committed
First commit of JAMA
2 parents 20fcbd0 + 7f70c32 commit 5ba290b

File tree

2 files changed

+34
-42
lines changed

2 files changed

+34
-42
lines changed

ChangeLog

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#Background#
2+
3+
JAMA is a basic linear algebra package for Java. It provides user-level classes for constructing and manipulating real, dense matrices. It is meant to provide sufficient functionality for routine problems, packaged in a way that is natural and understandable to non-experts. It is intended to serve as the standard matrix class for Java, and will be proposed as such to the [Java Grande Forum][1] and then to [Sun][2]. A straightforward public-domain reference implementation has been developed by the [MathWorks][3] and [NIST][4] as a strawman for such a class. We are releasing this version in order to obtain public comment. There is no guarantee that future versions of JAMA will be compatible with this one.
4+
5+
A sibling matrix package, [Jampack][5], has also been developed at NIST and the University of Maryland. The two packages arose from the need to evaluate alternate designs for the implementation of matrices in Java. JAMA is based on a single matrix class within a strictly object-oriented framework. Jampack uses a more open approach that lends itself to extension by the user. As it turns out, for the casual user the packages differ principally in the syntax of the matrix operations. We hope you will take the time to look at Jampack along with JAMA. There is much to be learned from both packages.
6+
7+
##Capabilities##
8+
JAMA is comprised of six Java classes: Matrix, CholeskyDecomposition, LUDecomposition, QRDecomposition, SingularValueDecomposition and EigenvalueDecomposition.
9+
The Matrix class provides the fundamental operations of numerical linear algebra. Various constructors create Matrices from two dimensional arrays of double precision floating point numbers. Various gets and sets provide access to submatrices and matrix elements. The basic arithmetic operations include matrix addition and multiplication, matrix norms and selected element-by-element array operations. A convenient matrix print method is also included.
10+
11+
Five fundamental matrix decompositions, which consist of pairs or triples of matrices, permutation vectors, and the like, produce results in five decomposition classes. These decompositions are accessed by the Matrix class to compute solutions of simultaneous linear equations, determinants, inverses and other matrix functions. The five decompositions are:
12+
* Cholesky Decomposition of symmetric, positive definite matrices
13+
* LU Decomposition (Gaussian elimination) of rectangular matrices
14+
* QR Decomposition of rectangular matrices
15+
* Eigenvalue Decomposition of both symmetric and nonsymmetric square matrices
16+
* Singular Value Decomposition of rectangular matrices
17+
18+
The current JAMA deals only with real matrices. We expect that future versions will also address complex matrices. This has been deferred since crucial design decisions cannot be made until certain issues regarding the implementation of complex in the Java language are resolved.
19+
The design of JAMA represents a compromise between the need for pure and elegant object-oriented design and the need to enable high performance implementations.
20+
21+
##Reference Implementation##
22+
The implementation of JAMA downloadable from this site is meant to be a reference implementation only. As such, it is pedagogical in nature. The algorithms employed are similar to those of the classic Wilkinson and Reinsch Handbook, i.e. the same algorithms used in [EISPACK][6], [LINPACK][7] and [MATLAB][3]. Matrices are stored internally as native Java arrays (i.e., double[][]). The coding style is straightforward and readable. While the reference implementation itself should provide reasonable execution speed for small to moderate size applications, we fully expect software vendors and Java VMs to provide versions which are optimized for particular environments.
23+
24+
##Not Covered##
25+
JAMA is by no means a complete linear algebra environment. For example, there are no provisions for matrices with particular structure (e.g., banded, sparse) or for more specialized decompositions (e.g. Shur, generalized eigenvalue). Complex matrices are not included. It is not our intention to ignore these important problems. We expect that some of these (e.g. complex) will be addressed in future versions. It is our intent that the design of JAMA not preclude extension to some of these additional areas.
26+
Finally, JAMA is not a general-purpose array class. Instead, it focuses on the principle mathematical functionality required to do numerical linear algebra. As a result, there are no methods for array operations such as reshaping or applying elementary functions (e.g. sine, exp, log) elementwise. Such operations, while quite useful in many applications, are best collected into a separate array class.
27+
28+
[1]: http://www.npac.syr.edu/javagrande/
29+
[2]: http://java.sun.com
30+
[3]: http://www.mathworks.com
31+
[4]: http://www.nist.gov
32+
[5]: ftp://math.nist.gov/pub/Jampack/Jampack/AboutJampack.html
33+
[6]: http://www.netlib.org/eispack/
34+
[7]: http://www.netlib.org/linpack/

0 commit comments

Comments
 (0)