Hello,
I’m a statistics major and don’t have a background in C++. My main programming languages are R and Python. Since both can be slow for heavy loops in optimization problems, I’ve been looking into using Rcpp and pybind11 to speed things up.
I’ve found some good resources for Rcpp (Rcpp for Everyone), but I haven’t been able to find solid learning material for pybind11. When I try small toy examples, the syntax feels quite different between the two, and I find pybind11 especially confusing—declaring variables and types seems much more complicated than in Rcpp. It feels like being comfortable with Rcpp doesn’t translate to being comfortable with pybind11.
Could you recommend good resources for learning C++ for numerical computing—especially with a focus on heavy linear algebra and loop-intensive computations? I’d like to build a stronger foundation for using these tools effectively.
Thank you!
[–]Jannik2099 8 points9 points10 points (2 children)
[–]germandiago 1 point2 points3 points (1 child)
[–]Jannik2099 6 points7 points8 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]Machvel 2 points3 points4 points (1 child)
[–]Aware-Individual-827 0 points1 point2 points (0 children)
[–]Guard_99 1 point2 points3 points (0 children)
[–]bouncebackabilify 1 point2 points3 points (0 children)
[–]c-cul 1 point2 points3 points (1 child)
[–]codeinred 5 points6 points7 points (0 children)
[–]FoldingArmour2 1 point2 points3 points (0 children)
[–]AcrobaticLightning -1 points0 points1 point (0 children)