You may be interested in issue #7258
<https://github.com/JuliaLang/julia/issues/7258> and the julia-dev thread
<https://groups.google.com/forum/#!topic/julia-dev/DF8LUiH7FP4>linked to in
there.

Thanks,

Jiahao Chen
Staff Research Scientist
MIT Computer Science and Artificial Intelligence Laboratory

On Thu, Sep 11, 2014 at 3:40 PM, Christoph Ortner <
christophortn...@gmail.com> wrote:

>
> Here is a short code snippet, that got me puzzled.
> [Julia Version 0.3.0, Commit 7681878* (2014-08-20 20:43 UTC), Darwin
> (x86_64-apple-darwin13.3.0)]
>
>
>
> a = rand(3,3)
>
> b = rand(3,3)
>
> println(typeof(
>
>         [a[i,j]*b[i,j] for i = 1:3, j=1:3]))
>
> println(typeof(a .* b))
>
> Array{Any,2}
> Array{Float64,2}
>
>
>
> Should Julia not create the same output in both cases? Is this a bug or
> intended?
>
>
>      --Christoph
>
> Julia Version 0.3.0
> Commit 7681878* (2014-08-20 20:43 UTC)
> Platform Info:
>   System: Darwin (x86_64-apple-darwin13.3.0)
>
>
>
>

Reply via email to