02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

Result type,<br />

type parameters,<br />

and shape<br />

The result is of type logical with the same kind type parameter as MASK. ItisscalarifDIM is<br />

absent or MASK has rank one; otherwise, the result is an array of rank n-1 and of shape (d 1, d 2,<br />

..., d DIM-1, d DIM+1, ..., d n)where(d 1, d 2,...,d n)istheshapeofMASK.<br />

Result value<br />

Case 1 The result of ALL(MASK) has the value .TRUE. if all elements of MASK are<br />

.TRUE. or if MASK has size zero, and the result has value .FALSE. if any<br />

element of MASK is .FALSE..<br />

Case 2 If MASK has rank one, ALL(MASK, DIM) has a value equal to that of<br />

ALL(MASK). Otherwise,thevalueofelement(s 1, s 2,...,s DIM-1, s DIM+1, ...,<br />

s n )ofALL(MASK, DIM) is equal to ALL(MASK (s 1 , s 2 ,...,s DIM-1 ,:,s DIM+1 , ...,<br />

s n)).<br />

ALLOCATED(ARRAY)<br />

Description<br />

Indicate whether or not an allocatable array is currently allocated.<br />

Class<br />

Inquiry function.<br />

Argument<br />

ARRAY must be an allocatable array.<br />

Result type,<br />

type parameters,<br />

and shape<br />

Default logical scalar.<br />

Result value<br />

The result has the value .TRUE. if ARRAY is currently allocated and has the value .FALSE. if<br />

ARRAY is not currently allocated. The result is undefined if the allocation status of the array is<br />

undefined.<br />

486<br />

Chapter 11

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

Saved successfully!

Ooh no, something went wrong!