Commit f4156f6
committed
Fix nanflag support for min/max in mx-inlines.cc (bug #67714)
This changeset fixes a wrong result for min/max operations on dense matrices
with NaN values, which can be reproduced with:
[m,i] = max ([1,2,3;4,3,NaN;4,5,6], [], 2, "includenan")
* mx-inlines.cc: Rework the logic of nan-handling as described above.
* max.cc: Add BISTs1 parent 07d42c8 commit f4156f6
2 files changed
+54
-188
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1111 | 1124 | | |
1112 | 1125 | | |
1113 | 1126 | | |
| |||
1403 | 1416 | | |
1404 | 1417 | | |
1405 | 1418 | | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1406 | 1432 | | |
1407 | 1433 | | |
1408 | 1434 | | |
| |||
0 commit comments