Dear Isaiah,
Thanks - I noted before that changing types to immutable in some cases
fixed things, but I didn't think that this would apply to BeagleOperation.
I'll read over the new docs carefully.
As for the second point, the signature in beagle.h is
/**
* @brief Set a state frequency buffer
*
* This function copies a state frequency array into an instance buffer.
*
* @param instance Instance number (input)
* @param stateFrequenciesIndex Index of state frequencies buffer (input)
* @param inStateFrequencies State frequencies array (stateCount) (input)
*
* @return error code
*/
BEAGLE_DLLEXPORT int beagleSetStateFrequencies(int instance,
int stateFrequenciesIndex,
const double* inStateFrequencies);
I'll follow up with the BEAGLE devs to see why your fix makes the script
run, as the output (logL) isn't correct.
Best
Simon