Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ array_and_max
Function
array_and_max
dask/array/tests/test_gufunc.py:694–695 ·
view source on GitHub ↗
(arr)
Source
from the content-addressed store, hash-verified
692
693
@da.as_gufunc(signature=
"(i,j) ->(i,j), ()"
, meta=meta)
694
def
array_and_max(arr):
695
return
arr, np.atleast_1d(arr.max())
696
697
result = array_and_max(stack)
698
assert_eq(expected[0], result[0])
Callers
1
test_as_gufunc_with_meta
Function · 0.85
Calls
1
max
Method · 0.45
Tested by
no test coverage detected