MCPcopy 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)
1459def 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

traceMethod · 0.90

Calls 2

diagonalFunction · 0.90
sumMethod · 0.45

Tested by

no test coverage detected