extraction.core.functions.math_utils.div0

div0(array, fill=0, axis=-1)[source]

Divide array a by array b.

If the result is a scalar and infinite, return fill.

If the result contain elements that are infinite, replace these elements with fill.

Parameters
a: array
b: array
fill: float
**kwargs: kwargs