class documentation

class _MaskedBinaryOperation(_MaskedUFunc): (source)

View In Hierarchy

Define masked version of binary operations, where invalid values are pre-masked.

Parameters
mbfuncThe function for which to define a masked version. Made available as _MaskedBinaryOperation.f.
domainDefault domain for the function. Should be one of the _Domain* classes. Default is None.
fillxFilling value for the first argument, default is 0.
fillyFilling value for the second argument, default is 0.
Method __call__ Execute the call behavior.
Method __init__ abfunc(fillx, filly) must be defined.
Method accumulate Accumulate target along axis after filling with y fill value.
Method outer Return the function applied to the outer product of a and b.
Method reduce Reduce target along the given axis.
Instance Variable fillx Undocumented
Instance Variable filly Undocumented

Inherited from _MaskedUFunc:

Method __str__ Undocumented
Instance Variable __name__ Undocumented
Instance Variable f Undocumented
def __call__(self, a, b, *args, **kwargs): (source)

Execute the call behavior.

def __init__(self, mbfunc, fillx=0, filly=0): (source)

abfunc(fillx, filly) must be defined.

abfunc(x, filly) = x for all x to enable reduce.

def accumulate(self, target, axis=0): (source)

Accumulate target along axis after filling with y fill value.

def outer(self, a, b): (source)

Return the function applied to the outer product of a and b.

def reduce(self, target, axis=0, dtype=None): (source)

Reduce target along the given axis.

fillx: scalar, optional = (source)

Undocumented

filly: scalar, optional = (source)

Undocumented