Julia has a feature called broadcasting which makes it easy to apply a function to one or more arrays with a concise dot syntax: f.(a, b)
means "apply f
elementwise to a
and b
".
Here's a quick visualization of the way a 2-dimensional broadcast operation works on a column vector a
and row vector b
.