Out can be 0d, no? Then it should be `out[...] = result`.