Re:A basic introduction to NumPy's einsum
by upbeat_general on Saturday April 09, 2022 @09:09PM
(#30973604)
This is 100% not the case with SIMD.
[ Parent
| on HN ]
Re:A basic introduction to NumPy's einsum
by dsharlet on Saturday April 09, 2022 @09:51PM
(#30973795)
Compilers can be pretty good if you help them out a bit. Here's my implementation of Einstein reductions (including summations) in C++, which generate pretty close to ideal code until you start getting into processor architecture specific optimizations: https://github.com/dsharlet/array#einstein-reductions