From: Jose B. <jb...@bt...> - 2009-09-04 12:10:12
|
Hi: I'm new to pyparse, thanks for doing this tool open source. I'm trying to store an sparse vector and to get the results. My requirements a quite simple I just need to store some items and to get them at the end of the analysis. I've created the matrix with: vect = pysparse.spmatrix.ll_mat(nelements, 1, size_hint) And now I want to get the items from the matrix. I could do: items = vect.items() The problem is that the created items is a list not an iterator. That consumes a lot of extra memory just to access the matrix. Is this the expected behaviour or am I missing something? Best Regards, -- Jose M. Blanca Postigo Instituto Universitario de Conservacion y Mejora de la Agrodiversidad Valenciana (COMAV) Universidad Politecnica de Valencia (UPV) Edificio CPI (Ciudad Politecnica de la Innovacion), 8E 46022 Valencia (SPAIN) Tlf.:+34-96-3877000 (ext 88473) |