Incremental

This commit is contained in:
Sridhar Ramesh
2018-02-20 21:54:40 -08:00
parent c2b9417c6a
commit c84b26ccce
3 changed files with 63 additions and 19 deletions

View File

@ -696,8 +696,8 @@ class DictAsObject(object):
# Just to have a less heavyweight name for this extremely common operation
#
# We may wish to have more fine-grained control over division by zero behavior
# in future (separate specifiable default values for 0/0 and x/0 with x != 0),
# but for now, we just allow the option to handle 0/0.
# in the future (separate specifiable values for 0/0 and x/0 with x != 0),
# but for now, we just allow the option to handle indeterminate 0/0.
def fdiv(a, b, zero_over_zero_value = None):
if zero_over_zero_value != None:
out = np.full_like(a, zero_over_zero_value)