73
edits
Changes
→Forall loop
=== Forall loop ===
The forall loop is a way to leverage data parallelism or engage user-defined parallel iterators.
config const n = 5;
var A: [1..n] real;
forall i in 1..n {
A[i] = i;
}
= Reference =