Le mercredi 30 septembre 2015 à 14:02 -0700, David McInnis a écrit :
> Using julia 0.3.     
> 
> I'm just beginning to learn julia..
> 
> So..
> 10 * [1:3]     is fine
> 10 / [1:3]     is an error
> 10 ^ [1:3]    also erroneous
> 
> Why?   This seems strange to me.
> 
> I did figure out I could use something like:    broadcast(/, 10, [1:])
> so the functionality is there, but why would  /  behave differently than  *  ?
These are the matrix operators. Use .*, ./ and .^ for element-wise
operations.


Regards


> Thanks!

Reply via email to