Q. FORALL Statement in fortran?
The FORALL statement permits for more common assignments to sections of an array. A FORALL statement has general form.
FORALL ( triplet, ..., triplet, mask )
statement
where triplet has general form
subscript = lower: upper : step-size
And specifies a group of indices. Step-size is optional. Statement is an arithmetic or pointer assignment and assignment statement is calculated for those index values specified by list of triplets which aren't rejected by optional mask and specifies a group of indices. Step-size is optional. Statement is an arithmetic or pointer assignment and assignment statement is calculated for those index values specified by list of triplets which aren't rejected by optional mask.