Kotlin / multik

Multidimensional array library for Kotlin
https://kotlin.github.io/multik/
Apache License 2.0
633 stars 38 forks source link

multik in andriod14 ,the transpose funtion is too slow #204

Open CiChina opened 2 months ago

CiChina commented 2 months ago

in andriod13,my app with multik run a ndarray only use about 100ms to transpose a ndarray,but in andriod 14,this process needs 2000+ms

devcrocod commented 2 months ago

Oh, this is very strange. Matrix transposition is in multik-core and isn't tied to platforms or android versions.

Does the code differ from the version?

What is the size of the ndarrays?

Transposition, as far as I remember, is a view/lazy operation. We don't directly copy the data itself, we only change its representation. Copying occurs if data consistency is required for a subsequent operation.