Changeset 41824 for branches/eam_branches/ipp-dev-20210817
- Timestamp:
- Sep 29, 2021, 12:05:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/Ohana/src/opihi/cmd.data/vstats.c
r41820 r41824 88 88 mask[i] = 0; // do not mask unless we have a reason below 89 89 if (tvec) { 90 // note the logical vector is 0 == bad (ignore) 90 // note the logical vector is 0 == bad (ignore) while mask[i] has the opposite sense (0 is good) 91 91 mask[i] = (tvec->type == OPIHI_FLT) ? (tvec->elements.Flt[i] == 0.0) : (tvec->elements.Int[i] == 0); 92 92 } 93 if (!finite (*X)) { mask[i] = 0; }94 if (Ignore && (*X == IgnoreValue)) { mask[i] = 0; }93 if (!finite (*X)) { mask[i] = 1; } 94 if (Ignore && (*X == IgnoreValue)) { mask[i] = 1; } 95 95 } 96 96 } else { … … 99 99 mask[i] = 0; // do not mask unless we have a reason below 100 100 if (tvec) { 101 // note the logical vector is 0 == bad (ignore) 101 // note the logical vector is 0 == bad (ignore) while mask[i] has the opposite sense (0 is good) 102 102 mask[i] = (tvec->type == OPIHI_FLT) ? (tvec->elements.Flt[i] == 0.0) : (tvec->elements.Int[i] == 0); 103 103 } 104 if (!finite (*X)) { mask[i] = 0; }105 if (Ignore && (*X == IgnoreValue)) { mask[i] = 0; }104 if (!finite (*X)) { mask[i] = 1; } 105 if (Ignore && (*X == IgnoreValue)) { mask[i] = 1; } 106 106 } 107 107 }
Note:
See TracChangeset
for help on using the changeset viewer.
