[SciPy-user] sparse matrix dtype

Robin robince@gmail....
Tue Oct 9 08:36:32 CDT 2007


Hi,

I am trying to make a large sparse matrix - the values are all integers (in
fact all non-zeros will be 1) so it would save me a lot of memory if I could
use dtype=byte.

However:
In [23]: test=sparse.lil_matrix((10,10),dtype=byte)

In [24]: test.dtype
Out[24]: dtype('float64')

Is this correct or is there something up here?

Thanks

Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071009/d7985191/attachment.html 


More information about the SciPy-user mailing list