Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ f
Function
f
test/test_optim.py:24–25 ·
view source on GitHub ↗
(G)
Source
from the content-addressed store, hash-verified
22
M /= M.max()
23
24
def
f(G):
25
return
0.5 * np.sum(G**2)
26
27
def
df(G):
28
return
G
Callers
2
test_line_search_armijo
Function · 0.70
test_line_search_armijo_dtype_device
Function · 0.70
Calls
1
sum
Method · 0.45
Tested by
no test coverage detected