diff options
| author | Srimukh Sripada <git@srimukh.com> | 2022-06-27 05:06:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-26 23:06:00 -0400 |
| commit | e67fe9f1a86013dbfd4a5ad2bd69aa6e7f60e1fb (patch) | |
| tree | c63192e3b1c5eeede2bd042f4531f44568256d5e /numpy/array_api/_elementwise_functions.py | |
| parent | b65f0b7b8ba7e80b65773e06aae22a8369678868 (diff) | |
| download | numpy-e67fe9f1a86013dbfd4a5ad2bd69aa6e7f60e1fb.tar.gz | |
BUG: Use `keepdims` during normalization in `np.average` and `np.ma.average` (#21851)
The keepdims flag needs to be applied during the calculation of the sum of
the weights in np.average and np.ma.average. Not passing it causes weights
to broadcast incorrectly.
Fixes #21850
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions
