next up previous contents
Next: Array Expressions Up: Arrays Previous: Subscripting   Contents


Two arrays are conformable if they have the same shape.

All arrays used directly in an expression must be conformable. For example,

real, dimension(6)   :: A
real, dimension(2,3) :: B, C
B = C
is valid since B, C are conformable (the statement will just copy C into B element-by-element multiplication). However, the statement
A = C
is illegal, since A and C have different shapes.

Note that scalars are conformal to any array ( they are considered to be an array with all elements equal to the scalar). For example,

A=2.0 ; C=3.0
will fill A with 2's, and C with 3's.

Adrian Sandu 2001-08-26