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

Method outer

numpy/ma/core.py:6786–6800  ·  view source on GitHub ↗

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

(self, a, b)

Source from the content-addressed store, hash-verified

6784 return t
6785
6786 def outer(self, a, b):
6787 "Return the function applied to the outer product of a and b."
6788 ma = getmask(a)
6789 mb = getmask(b)
6790 if ma is nomask and mb is nomask:
6791 m = nomask
6792 else:
6793 ma = getmaskarray(a)
6794 mb = getmaskarray(b)
6795 m = logical_or.outer(ma, mb)
6796 result = self.f.outer(filled(a), filled(b))
6797 if not isinstance(result, MaskedArray):
6798 result = result.view(MaskedArray)
6799 result._mask = m
6800 return result
6801
6802def min(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
6803 kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims}

Callers 15

test_outer_bad_subclassFunction · 0.45
check_einsum_sumsMethod · 0.45
test_outer_out_paramFunction · 0.45
triFunction · 0.45
polyfitFunction · 0.45
get_matFunction · 0.45

Calls 4

getmaskFunction · 0.85
getmaskarrayFunction · 0.85
filledFunction · 0.85
viewMethod · 0.45

Tested by 15

test_outer_bad_subclassFunction · 0.36
check_einsum_sumsMethod · 0.36
test_outer_out_paramFunction · 0.36
get_matFunction · 0.36
get_matFunction · 0.36
test_4Method · 0.36