Okay, no problem, I'll get used to it.
I give Matlab courses and almost every year the 'dot' notation is one of 
the most 
difficult things for the students to learn and to remember in their 
homework.
At one point I wondered myself what the  .'  operator is doing. 
Is there something similar in Julia?


On Friday, May 2, 2014 6:18:18 PM UTC+2, Ethan Anderes wrote:
>
> It took me a second to get used to .+ but now it feels very natural to me. 
> Maybe it helps to see the benefits (rather than just the changes). From my 
> perspective you gain functionality in that .+  has implicit broadcasting:
>
> x = [1 2;
>          2 3]
> row = [3 4]
>
> x + row  # this correctly gives an error
> x .+ row # julia knows I want `row` broadcasted
>
>

Reply via email to