Skip to content

Change in backslash between adjoined arrays. #1057

@KristofferC

Description

@KristofferC

Is this an intended change on 1.11?

julia> A = [1.0;;]
1×1 Matrix{Float64}:
 1.0

julia> x = [1.0]
1-element Vector{Float64}:
 1.0

# 1.10
julia> adjoint(A) \ adjoint(x)
1×1 adjoint(::Vector{Float64}) with eltype Float64:
 1.0

# 1.11
julia> adjoint(A) \ adjoint(x)
1×1 Matrix{Float64}:
 1.0

It causes https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/0520b80_vs_997b49f/PDMats.primary.log

division of vectors (size (1, 1)): Test Failed at /home/pkgeval/.julia/packages/PDMats/cAM9h/test/pdmtypes.jl:132
  Expression: typeof(z) === typeof(y)
   Evaluated: Vector{Float64} === Matrix{Float64}

Stacktrace:
 [1] macro expansion
   @ /opt/julia/share/julia/stdlib/v1.11/Test/src/Test.jl:679 [inlined]
 [2] macro expansion
   @ ~/.julia/packages/PDMats/cAM9h/test/pdmtypes.jl:132 [inlined]

No idea what is right.

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