Skip to content
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

Multiline @tullio begin ... end #141

Open
Emmanuel-R8 opened this issue Mar 9, 2022 · 0 comments
Open

Multiline @tullio begin ... end #141

Emmanuel-R8 opened this issue Mar 9, 2022 · 0 comments

Comments

@Emmanuel-R8
Copy link

Emmanuel-R8 commented Mar 9, 2022

A = rand(4, 4, 5, 5)
B = rand(4, 4)

Why are the next 2 blocks not giving the same answers (or maybe worse why is the second one crashes with range of index 1 must agree)?

@tullio D[k, l] := begin
    A[i, j, k, l] * B[i, j]
end
@tullio D[k, l] := begin
    C[k, l] = A[i, j, k, l] * B[i, j]
    C[k, l]
end

Julia 1.6.5
Tullio 0.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant