Re: Operations on sparse matrices

2010-04-21 Thread Helmut Jarausch
On 04/19/10 08:03, pp wrote: > I am currently dealing with sparse matrices and have doubts on whether > we can use > 1.) dot (for matrix multiplication) and inv (inverse) operations of > numpy on sparse matrices of CSR format. > I don't know of any use of the inverse of a sparse matrix. Note, in

Re: Operations on sparse matrices

2010-04-19 Thread Robert Kern
On 4/19/10 1:03 AM, pp wrote: I am currently dealing with sparse matrices and have doubts on whether we can use 1.) dot (for matrix multiplication) and inv (inverse) operations of numpy on sparse matrices of CSR format. I initially constructed my sparse matrix using COO format and then converted

Re: Operations on sparse matrices

2010-04-19 Thread pp
I tried csr_matrix.dot(A,N) where A and N are two sparse matrices. is it correct for multiplication of two sparse matrices ? I still do not now how to perform matrix inversion for a sparse matrix. Can anyone please help. Thanks!! On Apr 19, 12:03 am, pp wrote: > I am currently dealing with spa

Operations on sparse matrices

2010-04-18 Thread pp
I am currently dealing with sparse matrices and have doubts on whether we can use 1.) dot (for matrix multiplication) and inv (inverse) operations of numpy on sparse matrices of CSR format. I initially constructed my sparse matrix using COO format and then converted it to CSR format now I want to