[ojAlgo-user] Interface analogous to Numpy?
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: B.D. <ab...@ma...> - 2012-04-19 09:35:53
|
Dear developers, I'm primarily interested in Machine Learning and Data analysis. Thanks for the good work, I appreciate the ojAlgo library very much! However, most new algorithms and applications in this field are still written in Python for Numpy/Scipy, not Java. I just had an idea: If one could offer classes/interfaces in pure Java with similar functionality and names as in http://docs.scipy.org/doc/numpy/reference/ , in particular ndarray http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html (e.g. strides in matrices and vectors, transposition, reshaping of matrices as a view without copying, many views on the same matrix data), then one could rather easily translate Python programs using Numpy to pure Java without reinventing the wheel and offer the excellent Python software for Java under the same license as the original. There are syntax limitations in Java, so A[2:5, :] would have to be translated to some intutive name or even a crazy mnemonic like A.viewI_c_icI(2, 5) (I = [ or ], i = comma, c = colon, _ = slots for the arguments). What do you think? Best regards B.D. |