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

Method nan_to_num

ot/backend.py:2873–2874  ·  view source on GitHub ↗
(self, x, copy=True, nan=0.0, posinf=None, neginf=None)

Source from the content-addressed store, hash-verified

2871 return cp.matmul(a, b)
2872
2873 def nan_to_num(self, x, copy=True, nan=0.0, posinf=None, neginf=None):
2874 return cp.nan_to_num(x, copy=copy, nan=nan, posinf=posinf, neginf=neginf)
2875
2876 def det(self, x):
2877 return cp.linalg.det(x)

Callers

nothing calls this directly

Calls 1

nan_to_numMethod · 0.45

Tested by

no test coverage detected