News for hackers. Stuff that matters.
Re:Julia Summer of Einsum by eigenspace on Wednesday June 05, 2019 @03:14PM (#20108089)
Depends on the implementation of `@einsum`. If the macro is implemented well, that’ll actually just lower to a matrix multiplication call and you’ll have zero runtime overhead.

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.

There are no comments on this comment yet.