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]>:

> 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