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
{{ message }}
Repository navigation
Support r[;] as a tensor without indices in index notation #325
@macroexpand @tensor r[;] := A[1; 1] returns the expression unchanged, so the error only surfaces when Julia lowers the leftover :=.
r[;] parses as Expr(:typed_ncat, :r, 1) rather than :ref/:typed_vcat, so isgeneraltensor(:(r[;])) is false. Since [;] is the natural way to write "empty codomain and empty domain" when using the A[a b; c d] split notation (e.g. in TensorKit's @planar, which currently throws an AssertionError on it from a postprocessor), it would be nice if Expr(:typed_ncat, x, 1) without further arguments were treated as x[].
Activity
gezerui888 commentedon Nov 25, 2026
I’ll update the parser to accept
r[;]when both index lists are empty and add regression tests for the trace.