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

Method rand

ot/backend.py:762–770  ·  view source on GitHub ↗

r""" Generate uniform random numbers. This function follows the api from :any:`numpy.random.rand` See: https://numpy.org/doc/stable/reference/random/generated/numpy.random.rand.html

(self, *size, type_as=None)

Source from the content-addressed store, hash-verified

760 raise NotImplementedError()
761
762 def rand(self, *size, type_as=None):
763 r"""
764 Generate uniform random numbers.
765
766 This function follows the api from :any:`numpy.random.rand`
767
768 See: https://numpy.org/doc/stable/reference/random/generated/numpy.random.rand.html
769 """
770 raise NotImplementedError()
771
772 def randn(self, *size, type_as=None):
773 r"""

Callers 15

test_empty_backendFunction · 0.95
randMethod · 0.45
randMethod · 0.45
randMethod · 0.45
test_plot2D_samples_matFunction · 0.45
test_raise_errorsFunction · 0.45
test_partial_wassersteinFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_empty_backendFunction · 0.76
test_plot2D_samples_matFunction · 0.36
test_raise_errorsFunction · 0.36
test_partial_wassersteinFunction · 0.36
test_solve_gromovFunction · 0.36
test_solve_gromov_gridFunction · 0.36
test_coot_warmstartFunction · 0.36