Mercurial > octave
changeset 31879:fc40c78a8421
maint: merge stable to default.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Thu, 02 Mar 2023 22:02:25 -0500 |
parents | 31430ca3644b (current diff) 942ca5f2c71c (diff) |
children | 95e06f13fde3 |
files | etc/NEWS.8.md scripts/statistics/mean.m |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/NEWS.8.md Thu Mar 02 13:42:30 2023 -0800 +++ b/etc/NEWS.8.md Thu Mar 02 22:02:25 2023 -0500 @@ -39,6 +39,9 @@ - Octave is now compatible with PCRE2 (UTF-8). PCRE2 is preferred over PCRE if both are installed. Configure with `--without-pcre2` if you prefer Octave to use PCRE in this case. + +- `mean` now internally processes data as type double to reduce liklihood of +hitting overflow or precision limits with other types (bug #63848). ### Graphical User Interface
--- a/scripts/statistics/mean.m Thu Mar 02 13:42:30 2023 -0800 +++ b/scripts/statistics/mean.m Thu Mar 02 22:02:25 2023 -0500 @@ -611,7 +611,6 @@ %!assert <*63848> (mean (ones (80e6, 1, "single"), 1), 1, eps) %!assert <*63848> (mean (ones (80e6, 1, "single"), [1 2]), 1, eps) %!assert <*63848> (mean (ones (80e6, 1, "single"), [1 3]), 1, eps) -%!assert <*63848> (mean (ones (80e6, 1, "single")), 1, eps) ## Test limits of double precision summation %!assert <63848> (mean ([flintmax("double"), ones(1, 2^8-1, "double")]), ...