Skip to content

Unexpected behavior in hvcat on Julia 1.12 #58866

@francis-biocurie

Description

@francis-biocurie

Old behavior

On julia v1.11.5:

[zeros(1, 0) zeros(1,0); zeros(0,0) zeros(0, 0)]

gives, as expected:

1×0 Matrix{Float64}

New behavior

On julia v1.12-beta4, it gives this unexpected results:

2×0 Matrix{Float64}

and, weirdly, this:

row1 = [zeros(1, 0) zeros(1,0)]
row2 = [zeros(0,0) zeros(0, 0)]
[row1; row2]

gives a different result:

1×0 Matrix{Float64}

which is incoherent, in my opinion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorregression 1.12Regression in the 1.12 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions