Jump to content

Matrix Toolkit Java

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pabeles (talk | contribs) at 13:03, 30 November 2012 (Created page with basic information plus usage example). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Introduction

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 based off of BLAS and LAPACK code. Partial set of sparse operations is provided through the Templates project. The library can be configured to ran as a pure Java library or use machine-optimized 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 "(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]

Usage Examples

Example of Singular Value Decomposition (SVD):

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

Example of matrix multiplication:

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

See also

References

  1. ^ "MTJ Project Page". MTJ. Retrieved November 30, 2012. {{cite web}}: Cite has empty unknown parameter: |1= (help)