3 ms·
For most cases, Julia’s broadcast syntax [1] is the easiest way to map a function over some values. When you want to do something more complex, Julia provides a
by chongli 6y ago
For most cases, Julia’s broadcast syntax [1] is the easiest way to map a function over some values. When you want to do something more complex, Julia provides an incredibly flexible and powerful iterator in CartesianIndices [2].
Did you have a more specific question about mapping or iteration in Julia?
[1] https://julia.guide/broadcasting https://julia.guide/broadcasting
[2] https://julialang.org/blog/2016/02/iteration/ https://julialang.org/blog/2016/02/iteration/