Second marginal of the transport plan, with the same shape as "b".
(self)
| 1240 | |
| 1241 | @property |
| 1242 | def marginal_b(self): |
| 1243 | """Second marginal of the transport plan, with the same shape as "b".""" |
| 1244 | if self._plan is not None: |
| 1245 | return self._backend.sum(self._plan, 0) |
| 1246 | elif self._lazy_plan is not None: |
| 1247 | lp = self._lazy_plan |
| 1248 | bs = self._batch_size |
| 1249 | nx = self._backend |
| 1250 | return reduce_lazytensor(lp, nx.sum, axis=0, nx=nx, batch_size=bs) |
| 1251 | else: |
| 1252 | return None |
| 1253 | |
| 1254 | @property |
| 1255 | def status(self): |
nothing calls this directly
no test coverage detected