(assign! m 1.0) should work
Otherwise you can also do (broadcast 1.0 target-shape) I think, that probably means you need to set the right implementation first
The broadcast method may be better if you have a big array and don't plan to mutate it, since that means it only needs to store a single double value
Thanks, I will give those a go.