Re:Why physicists still use Fortran (2015)
by pletnes on Sunday October 15, 2017 @01:18PM
(#15478036)
DGEMM doesn’t necessarily win over MATMUL for small matrices. Useful in e.g rotation matrices in finite element codes, and lots of other areas. Since matmul can be done with inlined loops, you also avoid the function call overhead, but it looks like a function call which is good for readability.
Re:Why physicists still use Fortran (2015)
by quadruplebond on Sunday October 15, 2017 @06:49PM
(#15479784)
Yeah small and skinny matrix multiplies are an active area of research.
If a specific function is important enough it will be hand optimized in a way that the language doesn't really matter. Sometimes that means calling MKL, or using Cuda, or writing your own assembly.