Skip to content

[BUG] Contracting diag objects with a non common axes bugs #48

@JoeyT1994

Description

@JoeyT1994

The following

using DiagonalArrays: delta

using TensorAlgebra: contract

contract(delta(2, 2), ("i", "j"), delta(2, 2), ("j", "l"))

Errors with

Image

unless the delta arrays have exactly matching indices. Obviously this makes sense from the perspective that the array would no longer be diagonal, but presumably the type should be promoted up to a sparse or dense array in such cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions