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

Method trace

dask/array/core.py:2616–2627  ·  view source on GitHub ↗

Return the sum along diagonals of the array. Refer to :func:`dask.array.trace` for full documentation. See Also -------- dask.array.trace : equivalent function

(self, offset=0, axis1=0, axis2=1, dtype=None)

Source from the content-addressed store, hash-verified

2614 )
2615
2616 def trace(self, offset=0, axis1=0, axis2=1, dtype=None):
2617 """Return the sum along diagonals of the array.
2618
2619 Refer to :func:`dask.array.trace` for full documentation.
2620
2621 See Also
2622 --------
2623 dask.array.trace : equivalent function
2624 """
2625 from dask.array.reductions import trace
2626
2627 return trace(self, offset=offset, axis1=axis1, axis2=axis2, dtype=dtype)
2628
2629 def prod(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
2630 """Return the product of the array elements over the given axis

Callers 1

_assertFunction · 0.80

Calls 1

traceFunction · 0.90

Tested by 1

_assertFunction · 0.64