[Jprogramming] J v NumPy (was Re: J v Python)
Konrad Hinsen
konrad.hinsen at fastmail.net
Thu Dec 13 09:46:52 UTC 2012
--On 12 décembre 2012 11:28:31 -0500 Raul Miller <rauldmiller at gmail.com>
wrote:
> On Wed, Dec 12, 2012 at 10:55 AM, Konrad Hinsen
> <konrad.hinsen at fastmail.net> wrote:
>> My personal dream would be a J implementation that uses NumPy arrays
>> internally, letting me combine Python and J easily.
>
> Why not the other way around?
>
> Since NumPy's design is about incorporating externally defined types,
> why not make it support J's types?
My data comes in through C libraries interfaced to NumPy, so my starting
point for any computation is a NumPy array. If I can get away with not
copying it to something else, that would be the best solution for me.
I don't know how J arrays are stored internally. Perhaps one could have
both NumPy and J arrays share the same memory space for the raw data. That
would be a nice solution as well.
Konrad.
More information about the Programming
mailing list