by savant_penguin · 7y ago · 0 comments
Would
@einsum c[i,j] = a[i,k] * b[k,j]
be slower than direct matrix multiplication?
Otherwise, you might end up lowering to a naïve for loop which would be significantly slower. TensorCast.jl and TensorOperations.jl know how to make matrix multiplication calls but currently Einsum isn't that smart.
Macros are just syntax transformations.