I have a function that takes fixed input arrays and variable scalars to produce a scalar return value. I would like to use the broadcast capability of Julia to turn the variable scalars into arrays, and have it return an array of the same size. Is there a straightforward way to get the broadcast syntax f.()
to interpret the input arguments correctly (not attempting to broadcast over the fixed arrays)? Or is there some other clever way using map
or broadcast
?
For now, I will initialize the return array and just use a for
loop.