| OjAlgo | |
|---|---|
| Original author | Anders Peterson |
| Stable release | v56.1.1 / November 9, 2025 |
| Operating system | Cross-platform |
| Type | Library |
| License | MIT License |
| Website | ojalgo |
oj! Algorithms or ojAlgo, is an open source Java library for mathematics, [1] [2] linear algebra and optimisation. It was first released in 2003 [3] 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. [3]
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:
PrimitiveDenseStoreresult=FACTORY.makeZero(matA.getRowDim(),matB.getColDim());result.fillByMultiplying(matA,matB);