No comment on the rest, but the element-wise division operator is `./`,
which does work:
~~~
julia> x1 = [1.0, 1, 1];
julia> 1.0 ./ x1
3-element Array{Float64,1}:
1.0
1.0
1.0
~~~
-- Leah
On Wed, Sep 24, 2014 at 5:17 PM, Hans W Borchers <[email protected]>
wrote:
> I have been updated to version 0.4 though I seem to remember it was said
> the
> PPA archive will not move to 0.4 before a stable prerelease has been
> reached.
>
> Now I get the following strange behavior in vector operations:
>
> julia> x1 = [1.0, 1, 1]; x2 = [1:3];
>
> julia> x1 / x2
> 3x3 Array{Float64,2}:
> 0.0714286 0.142857 0.214286
> 0.0714286 0.142857 0.214286
> 0.0714286 0.142857 0.214286
>
> I believe to remember this led to an error in 0.3 -- am I totally wrong
> here?
> At the same time 1.0 / x1 does throw an error though it should work as
> elementwise division (at least so says the manual).
>
> julia> 1.0 / x1
> ERROR: `/` has no method matching /(::Float64, ::Array{Float64,1})
>
> And while we are at it, please remove this irritating behavior a.s.a.p.
> (Yes, I know what happens, `x1*0.2`, it's still not tolerable):
>
> julia> x1.2
> 3-element Array{Float64,1}:
> 0.2
> 0.2
> 0.2
>
> Even in the state of a chaotic transformation (from 03 to 0.4). please let
> your casual users not stand out in the cold.
>
> Difficult to imagine that anything would reach Mars following such laws.
> (Sorry for the pun.)
>