kotlin-numpy icon indicating copy to clipboard operation
kotlin-numpy copied to clipboard

Support for Android Studio?

Open dpnkrg opened this issue 5 years ago • 9 comments

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?

dpnkrg avatar Mar 26 '20 10:03 dpnkrg

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.

devcrocod avatar Mar 30 '20 07:03 devcrocod

Any similar library? Can we port this?

dpnkrg avatar Mar 30 '20 09:03 dpnkrg

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.

MKhalusova avatar Mar 30 '20 19:03 MKhalusova

@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:

  • nd-arrays with ndim <=2
  • arbitrary transforms along axes
  • arbitrary reductions along axes
  • computing pairswise distances similar to scipy cdist

jhannink avatar Apr 22 '20 08:04 jhannink

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

devcrocod avatar Apr 24 '20 07:04 devcrocod

Yes, It will be beneficial for us.

dpnkrg avatar Apr 25 '20 06:04 dpnkrg

Hi there! Any progress on this feature? Thanks!

balazsbanto avatar Dec 16 '20 13:12 balazsbanto

Hi, any update on this feature.

dpnkrg avatar Dec 28 '20 07:12 dpnkrg

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.

devcrocod avatar Dec 28 '20 10:12 devcrocod