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
Documentation inconsistent with actual operations that exist #372
I was going through the TensorKit tutorial, and I noticed a lot of the code in it doesn't work any more. For instance:
julia> U, S, Vd = tsvd(A, ((1,3), (2,)));
ERROR: UndefVarError: `tsvd` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
julia> @tensor A′[a,b,c] := U[a,c,d] * S[d,e] * Vd[e,b];
ERROR: UndefVarError: `U` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
julia> A ≈ A′
ERROR: UndefVarError: `A′` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
julia> U
ERROR: UndefVarError: `U` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
So the tsvd routine has clearly changed, and I can't quite figure out what it has changed into.... This has made it hard to follow the tutorial, so it would be nice if it were fixed.
Thanks for bringing this up, I'll have a look ASAP.
To answer this specific question in the meantime, tsvd(A, ((1, 3), (2, )) would now be svd_compact(permute(A, ((1, 3), (2,))))
Reacted by AndreasChristophilopoulos
AndreasChristophilopoulos commented on Feb 11, 2026
Activity
lkdvos commentedon Feb 11, 2026
Thanks for bringing this up, I'll have a look ASAP.
To answer this specific question in the meantime,
tsvd(A, ((1, 3), (2, ))would now besvd_compact(permute(A, ((1, 3), (2,))))AndreasChristophilopoulos commentedon Feb 11, 2026
Wow, that's a lot of parentheses, I feel like I'm writing LISP ;)