Partial sum/adjacent difference with IPP

Partial sum/adjacent difference with IPP

Is there a way to compute partial sums or adjacent differences with IPP?

Partial sum is:

DST[0]= SRC[0]
DST[i]= SRC[i]+DST[i-1] for i > 0

Adjacent difference is (roughly) reverse operation:
DST[i] = SRC[i]-SRC[i-1]

4 Beiträge / 0 neu
Letzter Beitrag
Einzelheiten zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.