Open devcrocod opened 2 years ago
Need use Pinned<T>
, because CValues copy arrays.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-pinned/
https://kotlinlang.org/docs/native-c-interop.html#object-pinning
But frequent use pin
can lead to a lot of problems with performance.
Native functions from math, linalg don't work in
multik-openblas
for native targets via cinterop wrapper