I need to implement in C++ a finite-differences integrator of a partial differential equation. In Python I used the numpy.roll
method to roll the array and thus obtain periodic boundary conditions.
Is there an a library in C that will give me this method? That is, that when I access the position n+1
of a vector of length n
it will point to the cell at location 0
of the vector?