How to use differently sized static arrays per project

Exactly. If one the input parameters contain the size as a type parameter, use something like:

and then it may become non allocating. The point is to make the function specialize to a given N, and then these sizes are known at compile time, even if not apparently constant for the user.

(“particles” in my field are usually on the thousands, so that is why I asked. But with those sizes that is fine)

Ps. For example: Question about allocations and generators - #3 by lmiq