numpy
numpy copied to clipboard
BUG: make round consistently return a copy
Otherwise, round returns a view for integer arguments and a copy otherwise. All other "rounding" functions (ceil, floor, trunc, rint), always return copies. Thus, make round consistent with the rest of them.
fixes https://github.com/numpy/numpy/issues/29124
Needs a release note.
Release note snippet added.