02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Arrays<br />

Array sections<br />

Array sections<br />

An array section is a selected portion of another array (the parent) thatisitselfanarray,<br />

even if it consists of only one element, or possibly none. An array section can appear wherever<br />

an array name is allowed.<br />

The syntax for specifying an array section is:<br />

array-name (section-subscript-list)[ (substring-range) ]<br />

where:<br />

section-subscript-list<br />

section-subscript<br />

subscript<br />

subscript-triplet<br />

vector-subscript<br />

substring-range<br />

66<br />

is a comma-separated list of section-subscript.<br />

is one of:<br />

subscript<br />

subscript-triplet<br />

vector-subscript<br />

is a scalar integer expression.<br />

takes the form:<br />

[subscript]:[subscript][:stride]<br />

where stride is a scalar integer expression.<br />

is a rank-one integer array expression.<br />

specifies a character substring, as described in “Character substrings” on<br />

page 38. If substring-range is specified, array-name must be of type<br />

character.<br />

Chapter 4

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

Saved successfully!

Ooh no, something went wrong!