[SciPy-user] sparse matrix dtype
Robin
robince at gmail.com
Tue Oct 9 10:03:20 EDT 2007
On 10/9/07, Robin <robince at gmail.com> wrote:
> 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.
I added 'b' to the string of allowed dtypes in getdtype() on line 2791 of
sparse.py.
It now seems to behave as I would expect (hope), but it can't be that simple
can it?
Is it likely that doing this will break something else? Why are the dtypes
restricted in the first place.
Thanks
Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20071009/7b4dcb92/attachment.html>
More information about the SciPy-User
mailing list