Skip to content

Cannot push to a vector after applying a 3-arg ldiv! #897

Closed
JuliaLang/julia
#43510
@simonbyrne

Description

@simonbyrne
using LinearAlgebra
u = rand(2)
A = rand(2,2)
b = rand(2)

push!(b,3.0) # works
u = rand(3)
A = rand(3,3)
ldiv!(u,lu(A),b)

push!(b,4.0) # Error: cannot resize array with shared data

Originally posted by @ChrisRackauckas in JuliaLang/julia#33143 (comment)

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