Re: [ojAlgo-user] Interface analogous to Numpy?
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Stefan R. <Ste...@gm...> - 2012-04-20 14:21:26
|
Could not resist to have a quick look into jython-doc... http://wiki.python.org/jython/JythonFaq/ExtendingJython chapter "How do I emulate Jython object attribute access with a Java class?" seems to hold what we need. Overwriting public PyObject __findattr__(String name); should allow for a suitable adapter. Have a nice weekend! Stefan > There are many fields which are all public. We could replace them by set- > and > get methods in the adapter. I'm not sure, how jython deals with it. Can it map field-access in python-code to getter/setter methods on java-side? If not, numpy-python code would run only with an additional preprocessing. If you don't know, I would offer to check this out. The rest of your post sounds good to me after a first view, although I must admit, that I only used rather basic numpy-stuff yet. For instance I very rarely used reshaping and never used striding, so I might lack enough experience to see problems in your approach. cheers Stefan -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a |