Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Log Ratio of Normalizing Constants #7
I moved the function
Some of this is a little different to what I have in my master copy - I changed the template parameter for history to make it easier for users to write the path sampling integrands. I've checked that everything still works properly on the linear regression example but I'm saving that for a future pull request where I'll document it properly. Please let me know if you'd like me to add it in now.
Great, this looks good to me.
(I just realised it might not have been obvious from my previous comment, but the reason to avoid introducing the vector of ones is just that it involves allocating N*sizeof(double) bytes of memory and then initializing it every time and N might be quite large.)