[SciPy-user] usings numpy arrays in sets
nicky van foreest
Thu Jun 25 03:36:03 CDT 2009
I need to store numpy arrays in a python set. This is of course not
possible right away as arrays are not hashable. One way to achieve
this is to convert arrays to tuples, and use these tuples instead.
However, tuples need much more memory than arrays, which for my
purposes is undesirable. Does anybody know of a method to store numpy
arrays in a set (or something that gives similar behavior)?
Thanks in advance
More information about the SciPy-user