Matrix Toolkit Java

Last updated
Matrix Toolkit Java
Original author(s) Bjørn-Ove Heimsund
Initial release2003;22 years ago (2003)
Preview release
0.9.14 / November 22, 2011 (2011-11-22)
Repository github.com/fommil/matrix-toolkits-java
Written in Java
Type Application programming interface (API)
License LGPL

Matrix Toolkit Java (MTJ) is an open-source Java software library for performing numerical linear algebra. The library contains a full set of standard linear algebra operations for dense matrices based on BLAS and LAPACK code. Partial set of sparse operations is provided through the Templates project. The library can be configured to run as a pure Java library or use BLAS machine-optimized code through the Java Native Interface.

Contents

MTJ was originally developed by Bjørn-Ove Heimsund, who has taken a step back due to other commitments. The project webpage states that "(The new maintainers are) primarily concerned with keeping the library maintained, and fixing bugs as they are discovered. There is no road plan for future releases". [1]

Several citations for MTJ can be found in scientific literature, including [2] which uses its LU preconditioner. Performance of MTJ has been compared to other libraries, which can be found at Java Matrix Benchmark's site. [3]

Capabilities

The following is an overview of MTJ's capabilities, as listed on the project's website:

Usage Examples

Example of Singular Value Decomposition (SVD):

SVDsvd=newSVD(matA.numRows(),matA.numColumns());SVDs=svd.factor(matA);DenseMatrixU=s.getU();DenseMatrixS=s.getS();DenseMatrixVt=s.getVt();

Example of matrix multiplication:

DenseMatrixresult=newDenseMatrix(matA.numRows(),matB.numColumns());matA.mult(matB,result);

See also

References

  1. "MTJ Project Page". MTJ. Retrieved November 30, 2012.
  2. McMahan, H.B.; Gordon, G.J. (2005). "Fast exact planning in Markov decision processes" (PDF). Proc. of the 15th International Conference on Automated Planning and Scheduling (ICAPS-05).
  3. "Java Matrix Benchmark" . Retrieved December 6, 2012.