Skip to content

[ENHANCEMENT] Add the syntax TensorAlgebra.svd(a, (1,), (2, 3)) #67

@mtfishman

Description

@mtfishman

Add the syntax TensorAlgebra.svd(a, (1,), (2, 3)) and/or TensorAlgebra.svd(a, ((1,), (2, 3))). Currently TensorAlgebra.svd(a, permmortar(((1,), (2, 3)))) and TensorAlgebra.svd(a, ("i", "j", "k"), ("i",), ("j", "k")) are supported.

I think I had held off introducing this syntax to wait and see what other syntax we might want and avoid introducing syntax that could lead to ambiguities (say syntax where it is ambiguous whether the input should be interpreted as a permutation or as labels). I think we could have a convention that 1 or 2 arguments after the array input should be processed as a biperm, similar to the syntax matricize(a, (1, 2), (3, 4)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions