def outer (self, a, b):
ma = getmask(a)<EOL>mb = getmask(b)<EOL>if ma is nomask and mb is nomask:<EOL><INDENT>m = nomask<EOL><DEDENT>else:<EOL><INDENT>ma = getmaskarray(a)<EOL>mb = getmaskarray(b)<EOL>m = logical_or.outer(ma, mb)<EOL><DEDENT>result = self.ufunc.outer(filled(a), filled(b))<EOL>if not isinstance(result, MaskedArray):<EOL><INDENT>result = result.view(MaskedArray)<EOL><DEDENT>result._mask = m<EOL>return result<EOL>
Return the function applied to the outer product of a and b.