Is there a version of parallel_scan that works with lambda functions? If so, can anyone provides us an example?
It looks like that there is no lambda version of parallel_scan...
Have you tried writing an adapter Body?
For more complete information about compiler optimizations, see our Optimization Notice.