getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Change Getfem Sparse Matrix to a Python Sparse Matrix


From: Luis Saavedra
Subject: Re: [Getfem-users] Change Getfem Sparse Matrix to a Python Sparse Matrix format
Date: Thu, 22 Jul 2010 15:17:12 -0400

if A is a Spmat object:

>>> [indptr, indices] =  A.csc_ind()
>>> data = ""> >>> 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 <address@hidden> 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

_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]