You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> mx = ["$i-$j"for i=1:10, j=1:10];
julia>@tensor t[i,j] := mx[j,i]
ERROR: UndefRefError: access to undefined reference
[inlined code] from simdloop.jl:73in add_micro! at /home/shashi/.julia/v0.4/TensorOperations/src/implementation/kernels.jl:6in add_rec! at /home/shashi/.julia/v0.4/TensorOperations/src/implementation/recursive.jl:13in add! at /home/shashi/.julia/v0.4/TensorOperations/src/implementation/stridedarray.jl:25in deindexify! at /home/shashi/.julia/v0.4/TensorOperations/src/indexnotation/indexedobject.jl:57in deindexify at /home/shashi/.julia/v0.4/TensorOperations/src/indexnotation/indexedobject.jl:47
using t = similar(mx); @tensor t[i,j] = mx[j,i] seems to work (do I never thought about anything else than numbers when writing the implementation so I am positively surprised). There must be something wrong with how I deal with := (probably similar problem as with #14 ). I'll look into this soon.
I am going to close this; feel free to reopen. It is not working at all in latest versions of TensorOperations, but TensorOperations is really about numerical arrays, and things like true*string == string clearly don't hold (in fact the left hand side does not work). It would be to big of a change to fix this, or to provide completely independent implementations for non-numerical types.
But
Works!
It's okay if it's a finicky detail that you don't plan on fixing.
The text was updated successfully, but these errors were encountered: