Jblas: Linear Algebra for Java
Appearance
Original author(s) | Mikio L. Braun |
---|---|
Stable release | 1.2.3
/ February 13, 2013 |
Operating system | Cross-platform |
Type | Library |
License | BSD Revised |
Website | jblas |
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 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. By design, jblas removes much of the tediousness of using JNI interfaces and hide the Fortran calling conventions.[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 – 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
- ^ a b "Project Page". jblas. Retrieved September 22, 2013.