MCPcopy Create free account
hub / github.com/dask/dask / trace

Function trace

dask/array/reductions.py:1477–1478  ·  view source on GitHub ↗
(a, offset=0, axis1=0, axis2=1, dtype=None)

Source from the content-addressed store, hash-verified

1475
1476@derived_from(np)
1477def trace(a, offset=0, axis1=0, axis2=1, dtype=None):
1478 return diagonal(a, offset=offset, axis1=axis1, axis2=axis2).sum(-1, dtype=dtype)
1479
1480
1481@derived_from(np)

Callers 1

traceMethod · 0.90

Calls 2

diagonalFunction · 0.90
sumMethod · 0.45

Tested by

no test coverage detected