Unexpected allocations in loops

Array{F}

Is an abstract type. Probably you want just Vector{F}.

Edit: actually since you want to define the dimension at runtime, you may need to define:

Such that you get a concrete species.

2 Likes