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 <[email protected]> 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 > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
