Kotlin / kotlin-numpy

Kotlin bindings for NumPy
Apache License 2.0
316 stars 11 forks source link

Support for Android Studio? #11

Open dpnkrg opened 4 years ago

dpnkrg commented 4 years ago

Can we use this library in the Android Studio?

As of now, I am facing this error?

Error: Method name '@' in class 'org.jetbrains.numkt.math.ArithmeticOperatorsKt' cannot be represented in dex format.

How ho resolve this?

devcrocod commented 4 years ago

No, we don't support Android Studio. This library requires CPython and will not work on android. Do you need a math library for android?

This error occurs because dalvik converts files to the .dex format in which infix functions can give such errors.

dpnkrg commented 4 years ago

Any similar library? Can we port this?

MKhalusova commented 4 years ago

Hi @dpnkrg! It'd be very helpful to learn what you're trying to achieve. What do you want to do with the library? Without understanding this, it's hard to suggest another library or give any recommendations.

jhannink commented 4 years ago

@MKhalusova @devcrocod I have a very similar problem: I would like to use a numpy-like lib in my kotlin projects on mobile (predominantly android) as well as on desktop. Any thoughts on how to link the numpy c-sources in such a way that we don't have to rewrite all the numpy code in kotlin?

For my concrete example projects, the following would suffice:

devcrocod commented 4 years ago

We are exploring the ways to remove Python dependencies. Thank you for the information about which API is useful for your tasks.

dpnkrg commented 4 years ago

Yes, It will be beneficial for us.

balazsbanto commented 3 years ago

Hi there! Any progress on this feature? Thanks!

dpnkrg commented 3 years ago

Hi, any update on this feature.

devcrocod commented 3 years ago

As I said, this project cannot be used in android. But we have a new project Multik, JVM implementation can be used in Android. In the near future we will support Native for Android.