[Numpy-discussion] advanced indexing bug with huge arrays?

Sturla Molden sturla at molden.no
Thu Jan 26 12:39:07 EST 2012


Den 24.01.2012 17:19, skrev David Warde-Farley:
>
> Hmm. Seeing as the width of a C long is inconsistent, does this imply that
> the random number generator will produce different results on different
> platforms?

If it does, it is a C programming mistake. C code should never depend on 
the exact size of a long, only it's minimum size.  ISO C defines other 
datatypes if an exact integer size is needed (include stdint.h), but 
ANSI C used for NumPy does not.

Sturla



More information about the NumPy-Discussion mailing list