Sparse Matrix Multiplications

2008-05-12 Thread dingo_1980
I was trying to create a sparse matrix using scipy.sparse (10 X
10) with just the first row and first column filled with ones.
Lets call this matrix Asp. This is how I created Asp

from scipy import sparse
Asp = scipy.lil_matrix(10,10)
for i in range(10):
   Asp[i,0] = i
   Asp[0,i] = i
Bsp = (Asp.tocsr())*(Asp.tocsr())

This multiplication to get Bsp is taking a long time (to the order of
over an hour). Is there some other way of storing such huge sparse
matrices and doing their multiplications or is this the most optimal
way?
--
http://mail.python.org/mailman/listinfo/python-list


Are the following supported in scipy.sparse

2008-06-30 Thread dingo_1980
I wanted to know if scipy.sparse support or will support the following
functions which are available in scipy.linalg or scipy or numpy:

Inverse
Cholesky
SVD
multiply
power
append
eig
concatenate

Thanks...
--
http://mail.python.org/mailman/listinfo/python-list