[SciPy-user] weave and large arrays

Stephen Walton stephen.walton at csun.edu
Wed May 11 15:38:51 EDT 2005


Ryan Krauss wrote:

> Either reading in the ascii data or using io.loadmat without using 
> weave runs for over 15 minutes   The *.mat file contains 11 column 
> vectors that are 25000 elements long.

There is something really wrong here then.  I executed the following 
MATLAB code:

x1=rand(25000,1);
x2=rand(25000,1);
...
x11=rand(25000,1);
save foo -v4 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11

and then loaded 'foo.mat' using io.loadmat in a fraction of a second.  I 
was using MATLAB version 7, hence the -v4 switch to get lowest common 
denominator MATLAB file.




More information about the SciPy-User mailing list