Hi,

I need to sum the outputs of each thread. Is there a standard/efficient way to do this?

for example:

```
X = Matrix{Float64}(d, N)
Threads.@threads for k = 1:N
X[:, k] .= some_calculations()
end
sum!(ones(Int64, d), X)
```

Preferably avoid initialising an X, because I will only need the row sum.

Sorry about it if this is a stupid question. Any help would be much appreciated!