On Mon, Aug 1, 2016 at 8:15 PM, Oliver Schulz
<[email protected]> wrote:
> Hi,
>
> sorry if this is already covered somewhere - have the semantics of broadcast
> changed in Julia 0.5?

Essentially https://github.com/JuliaLang/julia/issues/17314
The promote_op basically assumes everything is a pure unary or binary operator.

>
> In 0.4, I can do
>
> broadcast(muladd, rand(5), rand(5), rand(5))
>
> But in 0.5 (0.5.0-rc0+86), I get
>
> ERROR: MethodError: no method matching muladd(::Float64, ::Float64)
> Closest candidates are:
>   muladd(::Float64, ::Float64, ::Float64) at float.jl:247
>   muladd(::Real, ::Real, ::Complex{T<:Real}) at complex.jl:177
>   muladd{T<:Number}(::T<:Number, ::T<:Number, ::T<:Number) at
> promotion.jl:239
>   ...
> [...]
>
>
> Is this a bug, or to be expected?
>
> Cheers,
>
> Oliver
>

Reply via email to