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

Method eye

ot/backend.py:343–351  ·  view source on GitHub ↗

r""" Creates the identity matrix of given size. This function follows the api from :any:`numpy.eye` See: https://numpy.org/doc/stable/reference/generated/numpy.eye.html

(self, N, M=None, type_as=None)

Source from the content-addressed store, hash-verified

341 raise NotImplementedError()
342
343 def eye(self, N, M=None, type_as=None):
344 r"""
345 Creates the identity matrix of given size.
346
347 This function follows the api from :any:`numpy.eye`
348
349 See: https://numpy.org/doc/stable/reference/generated/numpy.eye.html
350 """
351 raise NotImplementedError()
352
353 def sum(self, a, axis=None, keepdims=False):
354 r"""

Callers 15

test_empty_backendFunction · 0.95
euclidean_distancesFunction · 0.45
labels_to_masksFunction · 0.45
exp_buresFunction · 0.45
joint_OT_mapping_linearFunction · 0.45
joint_OT_mapping_kernelFunction · 0.45
eyeMethod · 0.45
eyeMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_empty_backendFunction · 0.76
test_cootFunction · 0.36
test_coot_warmstartFunction · 0.36
test_sanityFunction · 0.36
test_weak_otFunction · 0.36
test_ewcaFunction · 0.36
test_projections_stiefelFunction · 0.36
test_func_backendsFunction · 0.36
test_exp_buresFunction · 0.36
vectorizedFunction · 0.36