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

Method copy

ot/backend.py:852–860  ·  view source on GitHub ↗

r""" Returns a copy of the given tensor. This function follows the api from :any:`numpy.copy` See: https://numpy.org/doc/stable/reference/generated/numpy.copy.html

(self, a)

Source from the content-addressed store, hash-verified

850 raise NotImplementedError()
851
852 def copy(self, a):
853 r"""
854 Returns a copy of the given tensor.
855
856 This function follows the api from :any:`numpy.copy`
857
858 See: https://numpy.org/doc/stable/reference/generated/numpy.copy.html
859 """
860 raise NotImplementedError()
861
862 def allclose(self, a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
863 r"""

Callers 15

test_empty_backendFunction · 0.95
_LR_DysktraFunction · 0.45
clean_zerosFunction · 0.45
co_optimal_transportFunction · 0.45
copyMethod · 0.45
copyMethod · 0.45
dual_obj_gradFunction · 0.45
semi_dual_obj_gradFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_empty_backendFunction · 0.76
test_cootFunction · 0.36
test_entropic_cootFunction · 0.36
test_coot_warmstartFunction · 0.36
test_coot_logFunction · 0.36
test_sanityFunction · 0.36
test_init_plansFunction · 0.36
test_init_dualsFunction · 0.36
test_linear_partFunction · 0.36