Skip to content

Problem with displaying a matrix with circular reference #47280

Open
@bkamins

Description

@bkamins
julia> m = Any[1 2 3]
1×3 Matrix{Any}:
 1  2  3

julia> m[1] = m
1×3 Matrix{Any}:
Error showing value of type Matrix{Any}:
ERROR: StackOverflowError:

while a vector works without a problem:

julia> m = Any[1, 2, 3]
3-element Vector{Any}:
 1
 2
 3

julia> m[1] = m
3-element Vector{Any}:
  3-element Vector{Any}:#= circular reference @-1 =#
 2
 3

CC @ronisbr

Metadata

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions