probabilities[inputStructureDist % 2 ? 2 * i + 1 : 2 * i] = solutions[i].real() > 0 ? solutions[i].real() : 0;
Reverting the changes to make PRECISION 8 by default and to set neg. probabilities to 0.
Remove a free call
Ivan's performance changes