JAMA is a basic linear algebra package for Java.
It provides user-level classes for constructing and manipulating real, dense matrices.
JAMA is comprised of six Java classes: Matrix, CholeskyDecomposition, LUDecomposition, QRDecomposition, SingularValueDecomposition and EigenvalueDecomposition.
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.
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
- Cholesky Decomposition of symmetric, positive definite matrices
- LU Decomposition (Gaussian elimination) of rectangular matrices
- QR Decomposition of rectangular matrices
- Eigenvalue Decomposition of both symmetric and nonsymmetric square matrices
- Singular Value Decomposition of rectangular matrices
For more information about JAMA, please visit the JAMA home page at {@link http://math.nist.gov/javanumerics/jama/}.