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

Multi-dimensional array contraction code not working #73

Closed
Wangwei-Lan opened this issue Oct 21, 2019 · 3 comments
Closed

Multi-dimensional array contraction code not working #73

Wangwei-Lan opened this issue Oct 21, 2019 · 3 comments

Comments

@Wangwei-Lan
Copy link

Hi Jutho,

The following code used to work now seems not working in the latest version. So, I was wondering is there a easier way to solve the problem. Please see the code below. Thanks very much.

C = Array{Array{Float64}}(undef,2,2);
C[1,1] = rand(10,10);
C[1,2] = rand(10,10);
C[2,1] = rand(10,10);
C[2,2] = rand(10,10);
@tensor temp[:] := C[1,1][-1,1]*C[2,1][-2,1]

Best regards
Wangwei Lan

@Jutho
Copy link
Owner

Jutho commented Oct 21, 2019

My apologies for this oversight, I've pushed a fix to master, hopefully without introducing new bugs. Tests are running now and I will tag a new version after all is green.

@Jutho
Copy link
Owner

Jutho commented Oct 22, 2019

The new version is now tagged; could you check if this can be closed?

@Wangwei-Lan
Copy link
Author

Yes, I tested with my code, it worked now. Thanks very much.

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

2 participants