Open dinglucy opened 8 months ago
I put everything on one branch - please let me know if you would prefer optimal_transfer and walnuts split into two different pull requests. The optimal_transfer function is added to the parity.R document. The walnuts code is added to a new file called walnuts.R in the R folder and it uses two new C++ functions that are in boundary.cpp. Apologies - only the two main functions are full commented. I will comment the rest of it when I can, I just wanted to go ahead and share the process.
Hey @dinglucy, are you able to run devtools::document() and see if that fixes the CI failure?
Adds the optimal transfer function as described, along with necessary helper functions to the parity.R document.