[SciPy-user] weave and large arrays

Stephen Walton stephen.walton at csun.edu
Wed May 11 12:36:24 EDT 2005


Ryan Krauss wrote:

> Does anyone have an example of using weave to read in large ASCII arrays?

Is the load command too slow?  (A bit confusingly, there appear to be at 
least two "load" commands;  one in numarray and Numeric which reads 
ASCII data, and one in the top level of scipy which reads pickled data.)

> Is it possible to use weave to read large *.mat Matlab binary files?

Does scipy.io.loadmat do what you need?

x=scipy.io.loadmat('file.mat')

will create a dictionary with entries for each variable in the MAT file.





More information about the SciPy-User mailing list