MCPcopy Index your code
hub / github.com/numpy/numpy / outer

Function outer

numpy/ma/core.py:8332–8344  ·  view source on GitHub ↗

maskedarray version of the numpy function.

(a, b)

Source from the content-addressed store, hash-verified

8330
8331
8332def outer(a, b):
8333 "maskedarray version of the numpy function."
8334 fa = filled(a, 0).ravel()
8335 fb = filled(b, 0).ravel()
8336 d = np.outer(fa, fb)
8337 ma = getmask(a)
8338 mb = getmask(b)
8339 if ma is nomask and mb is nomask:
8340 return masked_array(d)
8341 ma = getmaskarray(a)
8342 mb = getmaskarray(b)
8343 m = make_mask(1 - np.outer(1 - ma, 1 - mb), copy=False)
8344 return masked_array(d, mask=m)
8345
8346
8347outer.__doc__ = doc_note(np.outer.__doc__,

Calls 6

filledFunction · 0.85
getmaskFunction · 0.85
getmaskarrayFunction · 0.85
make_maskFunction · 0.85
ravelMethod · 0.45
outerMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…