To be more explicit regarding the second approach:
```
def sum(a, ..., where=None, ignore_nan=False):
if ignore_nan:
if where is None:
where = ~isnan(a)
else:
where &= ~isnan(a)
# rest of the current implementation, as-is
```
_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/numpy-discussion.python.org
Member address: [email protected]
