How to call a java function from python/numpy?

后端 未结 3 407
陌清茗
陌清茗 2020-12-30 12:26

it is clear to me how to extend Python with C++, but what if I want to write a function in Java to be used with numpy?

Here is a simple scenario: I want to compute

3条回答
  •  有刺的猬
    2020-12-30 12:50

    I consider Jython to be one of the best options - which makes it seamless to use java objects in python. I actually integrated weka with my python programs, and it was super easy. Just import the weka classes and call them as you would in java within the python code.

    http://www.jython.org/

提交回复
热议问题