(x, y)
| 1288 | import dask.array as da |
| 1289 | |
| 1290 | def covariance(x, y): |
| 1291 | return ( |
| 1292 | (x - x.mean(axis=-1, keepdims=True)) * (y - y.mean(axis=-1, keepdims=True)) |
| 1293 | ).mean(axis=-1) |
| 1294 | |
| 1295 | rs = np.random.default_rng(42) |
| 1296 | array1 = da.from_array(rs.random((4, 4)), chunks=(2, 4)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…