Closed GoogleCodeExporter closed 8 years ago
Where is this being triggered? Why is it an issue? Please give more details.
Original comment by ramb...@gmail.com
on 29 Sep 2013 at 12:50
It is being triggered at BeagleCPU4StateImpl.hpp:450 (NT models), and
BeagleCPUImpl.hpp:1412 (AA models). It is a problem because the likelihood can
be 0.0, thus the log() is now -inf. Subsequently the (-inf - -inf == 0.0) check
always fails.
For the time being, I have commented out the check and it causes no issues
(i.e. the final likelihoods between PhyML and PhyML+BEAGLE match).
Original comment by imran.fa...@gmail.com
on 29 Sep 2013 at 1:07
I might suggest:
if (isnan(*outSumLogLikelihood)) { ... }
or
if (!(*outSumLogLikelihood == *outSumLogLikelihood)) { ... }
instead. These conditions do not fail for +/- infinity, but do fail for NaN.
Original comment by msuch...@gmail.com
on 30 Sep 2013 at 9:36
Original comment by imran.fa...@gmail.com
on 1 Oct 2013 at 11:06
Original issue reported on code.google.com by
imran.fa...@gmail.com
on 18 Sep 2013 at 3:28