[Numpy-discussion] what is nan_to_num() for float32 ?
haase at msg.ucsf.edu
Tue Sep 12 15:33:21 CDT 2006
I have a nice ndarray image viewer built on OpenGL - one annoyance though is
that is crashes if the array contains any NaN, or inf, ...
So, I found N.nan_to_num - but OpenGL (read: video cards) supports only
single precision float (N.float32)
So I get this:
Could nan_to_num() get an optional dtype argument ?
More information about the Numpy-discussion