Skip to content

wrong printing for single-element matrix #36732

@simeonschaub

Description

@simeonschaub

The following printing is wrong, as the output would produce a vector, not a matrix:

julia> show(IOContext(stdout, :compact=>true), fill(42, 1, 1))
[42]

Observed on master and 1.5.

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