Open
Description
RecursiveArrayTools.jl/test/partitions_test.jl
Lines 78 to 82 in 569a07e
What's the use case for the vector space interface? using broadcast, rather than overloading +,-
would be consistent with AbstractArray interface.
julia> 2 + rand(2)
ERROR: MethodError: no method matching +(::Int64, ::Vector{Float64})
For element-wise addition, use broadcasting with dot syntax: scalar .+ array
julia> 2 .+ rand(2)
2-element Vector{Float64}:
2.50859350057021
2.7682555961902384
Metadata
Metadata
Assignees
Labels
No labels