Matrix Toolkit Java


Matrix Toolkit Java 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.
MTJ was originally developed by Bjørn-Ove Heimsund, who has taken a step back due to other commitments. The project webpage states that " primarily concerned with keeping the library maintained, and fixing bugs as they are discovered. There is no road plan for future releases".
Several citations for MTJ can be found in scientific literature, including which uses its LU preconditioner. Performance of MTJ has been compared to other libraries, which can be found at Java Matrix Benchmark's site.

Capabilities

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

SVD svd = new SVD,matA.numColumns);
SVD s = svd.factor;
DenseMatrix U = s.getU;
DenseMatrix S = s.getS;
DenseMatrix Vt = s.getVt;

Example of matrix multiplication:

DenseMatrix result = new DenseMatrix,matB.numColumns);
matA.mult;