Multik on JVM
Overview
The JVM is the most flexible Multik target. You can use a pure Kotlin engine for portability or a native OpenBLAS engine for performance.
Engine availability
DEFAULT (
multik-default) - picks the best available engine.KOTLIN (
multik-kotlin) - pure Kotlin implementation.NATIVE (
multik-openblas) - OpenBLAS-backed engine.
Dependencies
Pick one of these options:
multik-defaultfor convenience.multik-kotlinif you want pure Kotlin only.multik-openblasif you want the native engine explicitly.
See Installation for Gradle snippets.
Check the current engine:
Other considerations:
OpenBLAS is useful for heavy linear algebra.
Native dependencies must be available and compatible with your environment.
On Android, the OpenBLAS JVM engine supports arm64-v8a only.
For platform-level constraints, see Multik on different platforms.