Syntax:
-
FORALL ( index-spec-list [,mask-expr] ) forall-assignment
-
index-spec is int-variable = triplet-spec
-
forall-assignment is ordinary assignment or pointer assignment
|
Semantics:
-
Equivalent to array assignment in Fortran 90
-
For each value of indices, check the mask
-
Compute right-hand sides for unmasked values
-
Make assignments to left-hand sides for unmasked values
-
Multiple assignments to the same location are not standard-conforming (i.e. are undefined)
|
Note: FORALL is not a general-purpose parallel loop!
|