此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
The following example demonstrates the reduction clause (Section 2.7.2.6 on page 28):
#pragma omp parallel for private(i) shared(x, y, n) \ reduction(+: a, b) for (i=0; i<n; i++) { a = a + x[i]; b = b + y[i]; }