It is only used locally in a function, and its size is at most the dimension + 2. Making the vector thread_local would work as well.
It is only used locally in a function, and its size is at most the dimension + 2. Making the vector thread_local would work as well.