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

Method nan_to_num

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

Source from the content-addressed store, hash-verified

1477 return np.matmul(a, b)
1478
1479 def nan_to_num(self, x, copy=True, nan=0.0, posinf=None, neginf=None):
1480 return np.nan_to_num(x, copy=copy, nan=nan, posinf=posinf, neginf=neginf)
1481
1482 def det(self, a):
1483 return np.linalg.det(a)

Callers

nothing calls this directly

Calls 1

nan_to_numMethod · 0.45

Tested by

no test coverage detected