[Numpy-discussion] Random Numbers

Perry Greenfield perry at stsci.edu
Wed Jun 2 08:43:02 CDT 2004


> I'm guessing you are seeing overflow problems with the boolean 
> representation which is the result of logical comparisons
> (which uses only 8 bit values) try:
> 
> sum(float(not_equal...
> 
> to eliminate that problem.
> 
> Perry
> 
arg, I should have said:  

sum(not_equal(...).astype(Float))




More information about the Numpy-discussion mailing list