[SciPy-Dev] adding chkfinite flags to linalg functions
Fri Aug 26 07:42:24 CDT 2011
----- Original message -----
> I am not opposed to making this change, but perhaps in the future (if
> someone gets around to it -- maybe me?) it would be cleaner for arrays
> to have a flag attached to them that records whether they are known to
> (or not to) contain infinite or NaN values. The flag would have to
> update itself on assignment to the array, or on calls that could
> possibly add NaN's or Inf's to the array.
I don't think that this can work: I can easily take a view of an array without Python even knowing it, and then when the view gets modified, it can gather NaNs and the flag of the original array will not be modified.
My 2 cents,
More information about the SciPy-Dev