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

Method max

ot/backend.py:373–381  ·  view source on GitHub ↗

r""" Returns the maximum of an array or maximum along given dimensions. This function follows the api from :any:`numpy.amax` See: https://numpy.org/doc/stable/reference/generated/numpy.amax.html

(self, a, axis=None, keepdims=False)

Source from the content-addressed store, hash-verified

371 raise NotImplementedError()
372
373 def max(self, a, axis=None, keepdims=False):
374 r"""
375 Returns the maximum of an array or maximum along given dimensions.
376
377 This function follows the api from :any:`numpy.amax`
378
379 See: https://numpy.org/doc/stable/reference/generated/numpy.amax.html
380 """
381 raise NotImplementedError()
382
383 def min(self, a, axis=None, keepdims=False):
384 r"""

Callers 15

test_empty_backendFunction · 0.95
_init_lr_sinkhornFunction · 0.45
lowrank_sinkhornFunction · 0.45
lp_solverFunction · 0.45
cost_normalizationFunction · 0.45
ot_next_gammaFunction · 0.45
semi_relaxed_next_gammaFunction · 0.45
compute_next_removalFunction · 0.45
fully_relaxed_pathFunction · 0.45
maxMethod · 0.45
maxMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_empty_backendFunction · 0.76
test_plot1D_matFunction · 0.36
test_barycenterFunction · 0.36
test_barycenter_debiasedFunction · 0.36
test_unmixFunction · 0.36
test_dual_sgd_sinkhornFunction · 0.36