Multik 0.3.0 Help

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-default for convenience.

  • multik-kotlin if you want pure Kotlin only.

  • multik-openblas if you want the native engine explicitly.

See Installation for Gradle snippets.

mk.setEngine(KEEngineType) // pure Kotlin // mk.setEngine(NativeEngineType) // OpenBLAS, if available

Check the current engine:

println(mk.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.

19 February 2026