This material is part of the course Practical Introduction to Parallel Programming and meant for educational purposes only.
Task
Implement a parallel, circular array shift.
Here is the serial implementation of the algorithm:
const int N = 100; double a[N]; double t; int i; t = a[N - 1]; for ( i = N - 1; i >= 1; i-- ) a[i] = a[i - 1]; a[0] = t;