Skip to content

replace ambiguous scale! methods #479

Closed
JuliaLang/julia
#25701
@Sacha0

Description

Discussion in #338 revealed some dubious scale! methods. For example (#338), determining what either of

scale!(A::AbstractArray{T<:Any,2}, b::AbstractArray{T<:Any,1}) at linalg/generic.jl:477
scale!(b::AbstractArray{T<:Any,1}, A::AbstractArray{T<:Any,2}) at linalg/generic.jl:478

does requires reading the associated code. And as @Keno suggests, expressing these operations as e.g. A*Diagonal(B) might be better. Best!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]stdlibJulia's standard library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions