MCPcopy
hub / github.com/numpy/numpy / outer

Method outer

numpy/ma/core.py:6989–7003  ·  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

6987 return t
6988
6989 def outer(self, a, b):
6990 "Return the function applied to the outer product of a and b."
6991 ma = getmask(a)
6992 mb = getmask(b)
6993 if ma is nomask and mb is nomask:
6994 m = nomask
6995 else:
6996 ma = getmaskarray(a)
6997 mb = getmaskarray(b)
6998 m = logical_or.outer(ma, mb)
6999 result = self.f.outer(filled(a), filled(b))
7000 if not isinstance(result, MaskedArray):
7001 result = result.view(MaskedArray)
7002 result._mask = m
7003 return result
7004
7005def min(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue):
7006 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
polyfitFunction · 0.45
triFunction · 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