Mercurial > octave
diff etc/NEWS.7.md @ 31305:3b16c2d90326 stable
var.m: Ensure consistent NaN outputs for Inf and NaN inputs (bug #63203)
* var.m: Add Inf and NaN input check to the shortcut codepath when the
operating dimension length is 1, and ensure a NaN output instead of 0. Add
BISTs to verify compatible outputs for NaN and Inf.
* NEWS.7.md: Note bugfix under Improvements and fixes.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Sat, 15 Oct 2022 08:27:57 -0400 |
parents | b8afc6e7d9b4 |
children | ef3cd4d7691f e649aa69d5bc |
line wrap: on
line diff
--- a/etc/NEWS.7.md Fri Oct 14 13:06:24 2022 -0400 +++ b/etc/NEWS.7.md Sat Oct 15 08:27:57 2022 -0400 @@ -22,6 +22,7 @@ - Accept negative inputs to -2^63 for `dec2bin` and `dec2hex` (bug #63089). - Fix incorrect `lambda` outputs for `lsqnonneg` and `pqpnonneg` (bug #63178). - `addtodate.m`: Fix wrong month returned when subtracting a month from some end-of-month dates (bug #60671). +- `var.m`: Fix some Inf and NaN inputs returning 0 instead of NaN (bug #63203) ### GUI