Skip to content

Literals get contracted as if they were symbols #113

@antoine-levitt

Description

@antoine-levitt
julia> a = ones(2,2)
2×2 Matrix{Float64}:
 1.0  1.0
 1.0  1.0

julia> @tensor A[i,j] := a[i,1]*a[j,1]
2×2 Matrix{Float64}:
 2.0  2.0
 2.0  2.0

This is hugely surprising to me. I guess if constants are not supported (#111) erroring would be better than contracting here.

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