OjAlgo explained

Author:Anders Peterson
Operating System:Cross-platform
Latest Release Version:v44.0
Genre:Library
License:MIT License

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.

Capabilities

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.

Usage example

Example of singular value decomposition:SingularValue svd = SingularValueDecomposition.make(matA);svd.compute(matA);

MatrixStore U = svd.getQ1;MatrixStore S = svd.getD;MatrixStore V = svd.getQ2;

Example of matrix multiplication:PrimitiveDenseStore result = FACTORY.makeZero(matA.getRowDim, matB.getColDim);result.fillByMultiplying(matA, matB);