Why does this matrix increment allocate?

Probably because these are abstract containers. Use Matrix{T}, or a full parametric type.

1 Like