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

Method where

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

Source from the content-addressed store, hash-verified

2751 return a
2752
2753 def where(self, condition, x=None, y=None):
2754 if x is None and y is None:
2755 return cp.where(condition)
2756 else:
2757 return cp.where(condition, x, y)
2758
2759 def copy(self, a):
2760 return a.copy()

Callers

nothing calls this directly

Calls 1

whereMethod · 0.45

Tested by

no test coverage detected