clear out all non-normals on load
This commit is contained in:
parent
fe21ef7920
commit
4c29bb0494
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ bool IMatrixCollector::load_imatrix(const char * fname) {
|
|||
|
||||
// Recreate the state as expected by save_imatrix(), and corerct for weighted sum.
|
||||
for (int i = 0; i < nval; i++) {
|
||||
if (tmp[i]) {
|
||||
if (std::isnormal(tmp[i])) {
|
||||
e.values[i] += tmp[i];
|
||||
e.counts[i] += ncall;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue