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

Method stack

ot/backend.py:722–730  ·  view source on GitHub ↗

r""" Joins a sequence of tensors along a new dimension. This function follows the api from :any:`numpy.stack` See: https://numpy.org/doc/stable/reference/generated/numpy.stack.html

(self, arrays, axis=0)

Source from the content-addressed store, hash-verified

720 raise NotImplementedError()
721
722 def stack(self, arrays, axis=0):
723 r"""
724 Joins a sequence of tensors along a new dimension.
725
726 This function follows the api from :any:`numpy.stack`
727
728 See: https://numpy.org/doc/stable/reference/generated/numpy.stack.html
729 """
730 raise NotImplementedError()
731
732 def outer(self, a, b):
733 r"""

Callers 15

test_empty_backendFunction · 0.95
stackMethod · 0.45
stackMethod · 0.45
maximumMethod · 0.45
minimumMethod · 0.45
stackMethod · 0.45
coo_matrixMethod · 0.45
stackMethod · 0.45
stackMethod · 0.45
coo_matrixMethod · 0.45
gmm_ot_apply_mapFunction · 0.45

Calls

no outgoing calls

Tested by 13

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_proj_SDPFunction · 0.36
test_wasserstein_1dFunction · 0.36
test_TFGW_optimFunction · 0.36
test_TFGW_variantsFunction · 0.36
test_TW_variantsFunction · 0.36
test_TWFunction · 0.36