if A is a Spmat object:

>>> [indptr, indices] =  A.csc_ind()
>>> data = A.csc_val()
>>> B = sparse.csc_matrix((data,indices,indptr))

then B is a csc scipy.sparse matrix :P,

regards,
Luis

El 20 de julio de 2010 16:33, Juan Felipe Henao <[email protected]>escribió:

>  Does anyone know how to change the format from the Sparse Getfem
> matrix to a python sparse matrix format to use with the library pysparse?
>
>
> ------------------------------
> Descubre un nuevo Hotmail: con más herramientas para una vida más práctica.
> Muy pronto. Ver más <http://www.nuevohotmail.com>
>
> _______________________________________________
> Getfem-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/getfem-users
>
>
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to