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

Method norm

ot/backend.py:492–500  ·  view source on GitHub ↗

r""" Computes the matrix frobenius norm. This function follows the api from :any:`numpy.linalg.norm` See: https://numpy.org/doc/stable/reference/generated/numpy.linalg.norm.html

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

Source from the content-addressed store, hash-verified

490 raise NotImplementedError()
491
492 def norm(self, a, axis=None, keepdims=False):
493 r"""
494 Computes the matrix frobenius norm.
495
496 This function follows the api from :any:`numpy.linalg.norm`
497
498 See: https://numpy.org/doc/stable/reference/generated/numpy.linalg.norm.html
499 """
500 raise NotImplementedError()
501
502 def any(self, a):
503 r"""

Callers 15

test_empty_backendFunction · 0.95
lowrank_sinkhornFunction · 0.45
sinkhorn_low_rank_kernelFunction · 0.45
normMethod · 0.45
normMethod · 0.45
normMethod · 0.45
normMethod · 0.45
Tk0k1Function · 0.45

Calls

no outgoing calls

Tested by 7

test_empty_backendFunction · 0.76
test_ewcaFunction · 0.36
test_func_backendsFunction · 0.36
fFunction · 0.36
dfFunction · 0.36
f2Function · 0.36
df2Function · 0.36