Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ trace
Function
trace
dask/array/reductions.py:1459–1460 ·
view source on GitHub ↗
(a, offset=0, axis1=0, axis2=1, dtype=None)
Source
from the content-addressed store, hash-verified
1457
1458
@derived_from(np)
1459
def
trace(a, offset=0, axis1=0, axis2=1, dtype=None):
1460
return
diagonal(a, offset=offset, axis1=axis1, axis2=axis2).sum(-1, dtype=dtype)
1461
1462
1463
@derived_from(np)
Callers
1
trace
Method · 0.90
Calls
2
diagonal
Function · 0.90
sum
Method · 0.45
Tested by
no test coverage detected