MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/ma/core.py:997–1008  ·  view source on GitHub ↗

abfunc(fillx, filly) must be defined. abfunc(x, filly) = x for all x to enable reduce.

(self, mbfunc, fillx=0, filly=0)

Source from the content-addressed store, hash-verified

995 """
996
997 def __init__(self, mbfunc, fillx=0, filly=0):
998 """
999 abfunc(fillx, filly) must be defined.
1000
1001 abfunc(x, filly) = x for all x to enable reduce.
1002
1003 """
1004 super().__init__(mbfunc)
1005 self.fillx = fillx
1006 self.filly = filly
1007 ufunc_domain[mbfunc] = None
1008 ufunc_fills[mbfunc] = (fillx, filly)
1009
1010 def __call__(self, a, b, *args, **kwargs):
1011 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected