Skip to content

Documentation inconsistent with actual operations that exist #372

Closed

Description

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.

Activity

  1. lkdvos commented on Feb 11, 2026

    @lkdvos
    Member

    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,))))

  2. AndreasChristophilopoulos commented on Feb 11, 2026

    @AndreasChristophilopoulos
    Author

    Wow, that's a lot of parentheses, I feel like I'm writing LISP ;)

  3. linked a pull request that will close this issueSome more documentation progress #345on Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions