issue_comments: 373579142
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/1995#issuecomment-373579142 | https://api.github.com/repos/pydata/xarray/issues/1995 | 373579142 | MDEyOklzc3VlQ29tbWVudDM3MzU3OTE0Mg== | 1217238 | 2018-03-16T01:55:44Z | 2018-03-16T01:55:44Z | MEMBER | Try: ```python import dask.array import numpy as np def mulsum_chunk(a, b): return np.einsum('...i,...i', a, b)[..., np.newaxis] def mulsum(a, b): # needs broadcasting/rechunking for a,b mapped = dask.array.map_blocks(mulsum_chunk, a, b, dtype=float, chunks=a.chunks[:-1] + (tuple(1 for _ in a.chunks[-1]),)) return dask.array.sum(mapped, axis=-1) ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
305757822 |