Return the function applied to the outer product of a and b.
(self, a, b)
| 1085 | return masked_tr |
| 1086 | |
| 1087 | def outer(self, a, b): |
| 1088 | """ |
| 1089 | Return the function applied to the outer product of a and b. |
| 1090 | |
| 1091 | """ |
| 1092 | (da, db) = (getdata(a), getdata(b)) |
| 1093 | d = self.f.outer(da, db) |
| 1094 | ma = getmask(a) |
| 1095 | mb = getmask(b) |
| 1096 | if ma is nomask and mb is nomask: |
| 1097 | m = nomask |
| 1098 | else: |
| 1099 | ma = getmaskarray(a) |
| 1100 | mb = getmaskarray(b) |
| 1101 | m = umath.logical_or.outer(ma, mb) |
| 1102 | if (not m.ndim) and m: |
| 1103 | return masked |
| 1104 | if m is not nomask: |
| 1105 | np.copyto(d, da, where=m) |
| 1106 | if not d.shape: |
| 1107 | return d |
| 1108 | masked_d = d.view(get_masked_subclass(a, b)) |
| 1109 | masked_d._mask = m |
| 1110 | return masked_d |
| 1111 | |
| 1112 | def accumulate(self, target, axis=0): |
| 1113 | """Accumulate `target` along `axis` after filling with y fill |
nothing calls this directly
no test coverage detected