How does one perform the exp() operation element-wise in Juila?

前端 未结 3 1500
醉话见心
醉话见心 2021-01-20 22:24

I\'m new to Julia and this seems like a straight-forward operation but for some reason I am not finding the answer anywhere.

I have been going through some tutorials

3条回答
  •  后悔当初
    2021-01-20 23:11

    The broadcasting operator . always changes a function to "element-wise". Therefore the answer is exp.(A), just like sin.(A), cos.(A), or f.(A) for any user-defined f.

提交回复
热议问题