-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative to Tullio for Chained Multiplication #157
Comments
Yes, TensorOperations ought to be good at this. I believe it still decides the order of multiplication based only on the syntax, i.e. before knowing the sizes of the arrays. But it has an option to specify relative costs, https://jutho.github.io/TensorOperations.jl/stable/indexnotation/#Contraction-order-and-@tensoropt-macro |
Thanks for the response. Can you give a TL;DR version of when to prefer one package over the other? |
Unfortunately, TensorOperations seems to have problems with StaticArrays. There seem to be some composability problems if you stray from the classic dynamic arrays. This holds true for Tullio as well with HybirdArrays. |
@mcabbott Is it possible to explicitly decompose computations using the pipe operator, as suggested in the documentation, to avoid the slowness of chained multiplication? For instance: |
The README tells why Tullio is slow for chained multiplication. Is there a tensor package that can be recommended for this use case? Thanks.
The text was updated successfully, but these errors were encountered: