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.

Result value<br />

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

Case 1 If MASK is absent, the result is a rank-one array whose element values are<br />

the values of the subscripts of an element of ARRAY whose value equals the<br />

maximum value of all of the elements of ARRAY.<br />

The ith subscript returned lies in the range 1 to e i,wheree i is the extent of<br />

the ith dimension of ARRAY.<br />

If more than one element has the maximum value, the element whose<br />

subscripts are returned is the first such element, taken in array element<br />

order. If ARRAY has size zero, the value of the result is processor-dependent.<br />

Case 2 If MASK is present, the result is a rank-one array whose element values are<br />

the values of the subscripts of an element of ARRAY, corresponding to a<br />

.TRUE. element of MASK, whose value equals the maximum value of all such<br />

elements of ARRAY.<br />

The ith subscript returned lies in the range 1 to e i,wheree i is the extent of<br />

the ith dimension of ARRAY.<br />

If more than one such element has the maximum value, the element whose<br />

subscripts are returned is the first such element taken in array element<br />

order.<br />

If there are no such elements (that is, if ARRAY has size zero or every element<br />

of MASK has the value .FALSE.), the value of the result is<br />

processor-dependent.<br />

In both cases, an element of the result is undefined if the processor cannot represent the value<br />

as a default integer.<br />

MAXVAL(ARRAY, DIM, MASK)<br />

Optional arguments<br />

DIM, MASK<br />

Description<br />

Maximum value of the elements of ARRAY along dimension DIM that correspond to the .TRUE.<br />

elements of MASK.<br />

Class<br />

Transformational function.<br />

Chapter 11 555

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

Saved successfully!

Ooh no, something went wrong!