06.03.2014 Views

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

Intel Fortran Language Reference - NCI National Facility

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 9<br />

Examples<br />

The value of MINVAL ((/2, 3, 4/)) is 2 because that is the minimum value in the rank-one array.<br />

The value of MINVAL (B, MASK=B .GT. 0.0) finds the minimum value of the positive elements<br />

of B.<br />

234<br />

C is the array .<br />

567<br />

MINVAL (C, DIM=1) has the value (2, 3, 4). 2 is the minimum value in column 1; 3 is the<br />

minimum value in column 2; and so forth.<br />

MINVAL (C, DIM=2) has the value (2, 5). 2 is the minimum value in row 1 and 5 is the minimum<br />

value in row 2.<br />

MM_PREFETCH<br />

The following rules apply if dim is specified:<br />

• The array result has a rank that is one less than array, and shape (d 1 , d 2 , ...,<br />

d DIM–1 , d DIM+1 , ..., d n ), where (d 1 , d 2 , ..., d n ) is the shape of array.<br />

• If array has rank one, MINVAL (array, dim [,mask]) has a value equal to<br />

that of MINVAL (array [,MASK = mask]). Otherwise, the value of element<br />

(s 1 , s 2 , ..., s DIM–1 , s DIM+1 , ..., s n ) of MINVAL (array, dim [,mask]) is equal<br />

to MINVAL (array (s 1 , s 2 , ..., s DIM–1 , :, s DIM+1 , ..., s n ) [,MASK = mask (s 1 ,<br />

s 2 , ..., s DIM–1 , :, s DIM+1 , ..., s n )]).<br />

If array has size zero or if there are no true elements in mask, the result (if dim<br />

is omitted), or each element in the result array (if dim is specified), has the<br />

value of the positive number of the largest magnitude supported by the<br />

processor for numbers of the type and kind parameters of array.<br />

Description:<br />

Syntax:<br />

Class:<br />

Arguments:<br />

address<br />

hint (opt)<br />

Prefetches data from the specified address on one memory cache line.<br />

CALL MM_PREFETCH (address [, hint] [, fault] [, exclusive])<br />

Subroutine<br />

Is the name of a scalar or array; it can be of any type or rank. It specifies the<br />

address of the data on the cache line to prefetch.<br />

Is an optional default integer constant with one of the following values:<br />

9-109

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

Saved successfully!

Ooh no, something went wrong!