Instead of changing the text in the manual, wouldn't it be reasonable 
to make the the line (emphasizing *one*)

  "Some operators without dots operate elementwise anyway when one argument 
   is a scalar. These operators are *, /, \, and the bitwise operators."

come true, that is  1/x  operates as elementwise division, and let [1]/x 
compute the matrix division:

    julia> x = [1,2,3]

    julia> 1/x                  # *should* work 1./x alike
    3-element Array{Float64,1}:
     1.0     
     0.5     
     0.333333

    julia> [1]/x                # works that way right now
    1x3 Array{Float64,2}:
     0.0714286  0.142857  0.214286


On Thursday, September 25, 2014 1:36:44 AM UTC+2, Andreas Noack wrote:
>
> The manual could possibly be a bit more clear on this, but I don't think 
> much has changed since 0.3.
>
> The forward slash in your first example gets computed as x1/x2=(x2'\x1')' 
> which Julia interprets as an underdetermined system with three right hand 
> sides.
>
> The description in the manual about defaulting to element wise operations 
> is only valid when the denominator argument is the scalar.
>
> I can't comment on the last parsing issue except that I agree that it 
> seems confusing.
>
> Med venlig hilsen
>
> Andreas Noack
>
> 2014-09-24 19:02 GMT-04:00 Hans W Borchers <[email protected] 
> <javascript:>>:
>
>> Yes, I know. But the manual says:
>>
>> "Some operators without dots operate elementwise anyway when one argument 
>> is a scalar.
>> These operators are *, /, \, and the bitwise operators."
>>
>>
>> On Thursday, September 25, 2014 12:55:16 AM UTC+2, Leah Hanson wrote:
>>>
>>> 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
>>>
>>>
>

Reply via email to