koblas

cblas

Types

Link copied to clipboard
class CblasLinearAlgebra : LinearAlgebra, Blas, Lapack

LinearAlgebra backed by the host's OpenBLAS through its C interfaces (CBLAS and LAPACKE), for the Linux and macOS native targets. Nothing is linked: the libraries are resolved with dlopen at program start, so the dependency is optional at runtime — libopenblas plus liblapacke on Debian/Ubuntu, brew install openblas on macOS. When they are present koblas installs this backend eagerly before main; when they are missing the program still runs on com.eignex.koblas.dense.ReferenceLinearAlgebra, and constructing this class throws. isAvailable and isBlasAvailable report which case the host is, since the two halves resolve independently.

Link copied to clipboard
class CblasVectorKernels : VectorKernels

The host OpenBLAS behind koblas's level-1 primitives, for the runs long enough to be worth a call.

Properties

Link copied to clipboard

Registers CblasLinearAlgebra for automatic selection at program start when the host provides OpenBLAS — depending on the koblas-cblas artifact activates it, mirroring the JVM's classpath discovery, while priority ranking keeps any stronger registered backend in front. On hosts without the libraries nothing is registered and com.eignex.koblas.koblas stays on the portable reference. installLinearAlgebra overrides either way; if the linker drops this unreferenced property, installLinearAlgebra(CblasLinearAlgebra()) remains the explicit activation path.