| OjAlgo | |
|---|---|
| Original author | Anders Peterson |
| Stable release | v56.1.1
/ November 9, 2025 |
| Written in | Java |
| Operating system | Cross-platform |
| Platform | Java |
| Type | Library |
| License | MIT License |
| Website | www |
| Repository | github |
oj! Algorithms or ojAlgo, is an open source Java library for mathematics, linear algebra and optimisation. It was first released in 2003 and is 100% pure Java source code and free from external dependencies. Its feature set make it particularly suitable for use within the financial domain.
It requires Java 8 since version v38. As of version 44.0, the finance specific code has been moved to its own project/module named ojAlgo-finance.
Example of singular value decomposition:
SingularValue<Double> svd = SingularValueDecomposition.make(matA);
svd.compute(matA);
MatrixStore<Double> U = svd.getQ1();
MatrixStore<Double> S = svd.getD();
MatrixStore<Double> V = svd.getQ2();
Example of matrix multiplication:
PrimitiveDenseStore result = FACTORY.makeZero(matA.getRowDim(), matB.getColDim());
result.fillByMultiplying(matA, matB);