MCPcopy Create free account
hub / github.com/PythonOT/POT / where

Method where

ot/backend.py:1352–1356  ·  view source on GitHub ↗
(self, condition, x=None, y=None)

Source from the content-addressed store, hash-verified

1350 return a
1351
1352 def where(self, condition, x=None, y=None):
1353 if x is None and y is None:
1354 return np.where(condition)
1355 else:
1356 return np.where(condition, x, y)
1357
1358 def copy(self, a):
1359 return a.copy()

Callers

nothing calls this directly

Calls 1

whereMethod · 0.45

Tested by

no test coverage detected