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

Method eye

ot/backend.py:1169–1173  ·  view source on GitHub ↗
(self, N, M=None, type_as=None)

Source from the content-addressed store, hash-verified

1167 return np.full(shape, fill_value, dtype=type_as.dtype)
1168
1169 def eye(self, N, M=None, type_as=None):
1170 if type_as is None:
1171 return np.eye(N, M)
1172 else:
1173 return np.eye(N, M, dtype=type_as.dtype)
1174
1175 def sum(self, a, axis=None, keepdims=False):
1176 return np.sum(a, axis, keepdims=keepdims)

Callers

nothing calls this directly

Calls 1

eyeMethod · 0.45

Tested by

no test coverage detected