[SciPy-user] Automatically retreiving Matrix Market files

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Nov 11 07:01:28 CST 2004


Hi all,

I am going to retreive test matrices from the Matrix Market page

from scipy import *
from tempfile import mktemp
from urllib import urlretrieve
url="http://math.nist.gov/MatrixMarket/data/SPARSKIT/fidap"
fname =  mktemp(".mtx.gz")
print "Downloading Matrix Market; this may take a minute..."
urlretrieve(url, fname)

How can I decompress the file afterwards and how do I use

io.mmread()

to import the matrix under consideration.

Sorry, if this inquiry is not purely related to scipy.

Nils

 



More information about the SciPy-user mailing list