5 ms·
Look into the Eigen library. They use template meta programming to chain linear algebra operations in a way that the compiler should be able to optimize memory
by rapatel0 3mo ago
Look into the Eigen library. They use template meta programming to chain linear algebra operations in a way that the compiler should be able to optimize memory layout and kernels for vector instructions. Might give you some ideas.
https://libeigen.gitlab.io/ https://libeigen.gitlab.io/
Though you can expect very verbose compiler output. (I had 35 pages of compiler output output for a single type error once). Probably Nbd with llms.
- tovej 3mo agoI've also had terrible performance with Eigen when compared to LAPACK. Would not recommend unless you want to spend time profiling performance issues.