13.07.2015 Views

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• The rank of an array is the number of dimensions.• The shape of an array is determined by its rank and itsextent in each dimension.• All the objects in an expression or assignment statementmust be conformable. Two arrays are conformable if theyhave the same shape. A scalar is conformable with anyarray.• Any intrinsic operation defined for scalar objects may beapplied <strong>to</strong> conformable objects. Such operations areperformed element-by-element <strong>to</strong> produce a resultant arrayconformable with the array operands.• The masked array assignment is used <strong>to</strong> perform selectiveassignment <strong>to</strong> arrays. For example, in the statementwhere(temp>0)temp = temp - reduce_temponly those elements in the array temp which are > 0 will bedecreased by the value reduce_temp.© 1998 David A. Padua40 of 118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!