Skip to content

v58.0.0

Latest

Choose a tag to compare

@apete apete released this 11 Nov 18:24
· 38 commits to develop since this release
<dependency>
    <groupId>org.ojalgo</groupId>
    <artifactId>ojalgo</artifactId>
    <version>58.0.0</version>
</dependency>
  • Java 22 – ojAlgo now requires Java 22 or later, and no longer requires the jdk.unsupported module. Everything in 57.7.0 is included.
  • Optional native BLAS – through Java's Foreign Function & Memory API, large enough matrix multiplications, matrix-vector products, triangular solves and vector operations can call a native library: Accelerate on macOS; OpenBLAS, FlexiBLAS, MKL, BLIS or the reference BLAS on Linux; OpenBLAS or MKL on Windows. It is opt-in – used only when the JVM grants ojAlgo native access, --enable-native-access=ojalgo or --enable-native-access=ALL-UNNAMED. See the README.
  • Native LAPACK decompositions – the dense double LU, Cholesky, QR, SingularValue, Eigenvalue and the other decompositions call the LAPACK routines for large enough matrices. With Accelerate, the eigenvalue decomposition of a 1000x1000 symmetric matrix is about 10x faster than in pure Java.
  • Off-heap arrays on FFM – OffHeapArray is backed by a MemorySegment rather than sun.misc.Unsafe: zero-initialised, released by the garbage collector, and AutoCloseable. OffHeapArray.Factory.newMapped(File, long) gives a memory mapped file.
  • Removed – BufferArray and its subclasses (use OffHeapArray), and NativeMemory.

Without native access no native code is used, but granting ALL-UNNAMED native access, for whatever reason, turns it on, and native results can differ from pure Java in the last digits. BufferArray and NativeMemory are removed – see CHANGELOG.md before upgrading.

Full Changelog: v57.7.0...v58.0.0