The Newton's method branch length optimization example (newton.c) appears to misinterpret what pll_compute_likelihood_derivatives returns here. It stores the return value as double opt_logl (optimized log-likelihood?) when in fact the function returns an int that as far as I can tell is a status code.
The Newton's method branch length optimization example (
newton.c
) appears to misinterpret whatpll_compute_likelihood_derivatives
returns here. It stores the return value asdouble opt_logl
(optimized log-likelihood?) when in fact the function returns anint
that as far as I can tell is a status code.