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

Method __init__

numpy/ma/core.py:1146–1155  ·  view source on GitHub ↗

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

(self, dbfunc, domain, fillx=0, filly=0)

Source from the content-addressed store, hash-verified

1144 """
1145
1146 def __init__(self, dbfunc, domain, fillx=0, filly=0):
1147 """abfunc(fillx, filly) must be defined.
1148 abfunc(x, filly) = x for all x to enable reduce.
1149 """
1150 super().__init__(dbfunc)
1151 self.domain = domain
1152 self.fillx = fillx
1153 self.filly = filly
1154 ufunc_domain[dbfunc] = domain
1155 ufunc_fills[dbfunc] = (fillx, filly)
1156
1157 def __call__(self, a, b, *args, **kwargs):
1158 "Execute the call behavior."

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected