[Numpy-discussion] sparse array data
Frédéric Bastien
nouiz at nouiz.org
Wed May 2 13:24:09 EDT 2012
what about numpy.ma? Those are marked array. But they won't be the fastest.
Fred
On Wed, May 2, 2012 at 12:16 PM, Wolfgang Kerzendorf
<wkerzendorf at gmail.com> wrote:
> Hi all,
>
> I'm currently writing a code that needs three dimensional data (for the physicists it's dimensions are atom, ion, level). The problem is that not all combinations do exist (a sparse array). Sparse matrices in scipy only deal with two dimensions. The operations that I need to do on those are running functions like exp(item/constant) on all of the items. I also want to sum them up in the last dimension. What's the best way to make a class that takes this kind of data and does the required operations fast. Maybe some phycisists have implemented these things already. Any thoughts?
>
> Cheers
> Wolfgang
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
More information about the NumPy-Discussion
mailing list