Jump to content

Jblas: Linear Algebra for Java

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pabeles (talk | contribs) at 15:23, 22 September 2013 (reworded to make it much less of a copy from the original website). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Jblas: Linear Algebra for Java
Original author(s)Mikio L. Braun
Stable release
1.2.3 / February 13, 2013 (2013-02-13)
Operating systemCross-platform
TypeLibrary
LicenseBSD Revised
Websitejblas.org

jblas is a linear algebra library for the Java programming language. jblas is a fast library due to its use of native implementations of BLAS and LAPACK, which are are the de-facto industry standard for matrix computations. jblas improved upon the archaic API found in BLAS and LAPACK (an artifact of them originating from the Fortran community) by providing an easy to use high level interface for Java users. jblas aims to make this functionality available to Java programmers such that they do not have to worry about writing JNI interfaces and calling conventions of Fortran code[1].

Capabilities

The following is an overview of jblas's capabilities, as listed on the project's website:[1]

  • Eigen – eigendecomposition
  • Solve – solving linear equations
  • Singular – singular value decomposition
  • Decompose – decompositions like LU, Cholesky, ...
  • Geometry – centering, normalizing, ...

Usage Example

Example of Eigenvalue Decomposition:

DoubleMatrix[] evd = Eigen.symmetricEigenvectors(matA);
DoubleMatrix V = evd[0];
DoubleMatrix D = evd[1];

Example of matrix multiplication:

DoubleMatrix result = matA.mmul(matB);

References

  1. ^ a b jblas Project Page http://mikiobraun.github.io/jblas/ Project Page. Retrieved September 22, 2013. {{cite web}}: Check |url= value (help); Missing or empty |title= (help)