Closed orialb closed 5 years ago
Nice catch; should be fixed when v0.2.6 of the package Strided is registered in METADATA; shouldn't take too long.
Your syntax invocation is a bit strange though, you overwrite the rank 2 array M
with a rank zero array, i.e. M
. If you just want the trace as a scalar, you could also do
M = randn(1,1)
@tensor t = M[a,a]
should be fixed when v0.2.6 of the package Strided is registered in METADATA; shouldn't take too long.
cool, thanks for the quick reply!
Your syntax invocation is a bit strange though, you overwrite the rank 2 array
M
with a rank zero array, i.e.M
. If you just want the trace as a scalar, you could also do ...
Oh I didn't know that's possible, thanks for the tip.
Can you try pkg> update
and see whether the problem persists or is solved?
The issue seems to be solved after the update of Strided.jl to v0.2.6. Thanks!
Hi, first of all let me thank you for this great package that I find really useful. I encountered an issue with v1.0.3 that didn't occur in v0.7.1 where trying to trace a 1X1 tensor produces an error. minimal example to reproduce:
this results in the following error:
I'm on Julia 1.0.3 .