12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

MINLOC 90Return the position of the element with the minimum value of the elements of the argument array.The test elements may be limited by a dimension argument or by a logical mask argument.SynopsisMINLOC(ARRAY [,DIM] [,MASK])ArgumentsThe argument ARRAY must be an array of type integer or real. The optional argument DIM, addedin Fortran 95, is of type integer. The optional argument MASK must be of type logical and musthave the same shape as ARRAY. If only two arguments are supplied, the type of the secondargument is used to determine if it represents DIM or MASK.Return ValueThe return value is an integer array of rank 1 and has a size equal to the number of dimensions inARRAY. The return value is the position of the first element that is the minimum value of the array.If the MASK parameter is present, the return value is the position of the first value that has theminimum value of values in ARRAY, and that also has a true value in the corresponding MASKarray.When the DIM argument is supplied, the return value is an array that has a value of MINLOCapplied recursively along the DIM dimensions of the array.MINVAL 90Return the minimum value of the elements of the argument array. The test elements may belimited by a dimension argument or by a logical mask argument.SynopsisMINVAL(ARRAY [,DIM] [,MASK])ArgumentsThe argument ARRAY must be an array of type integer or real. The optional argument DIM is ascalar that has the value of a valid dimension of the array (valid dimensions are between the values1 and n where n is the rank of the array). The optional argument MASK must be of type logical andmust have the same shape as ARRAY. Fortran 95 has extended MINVAL such that if only twoarguments are supplied, the type of the second argument is used to determine if it represents DIMor MASK.228 Chapter 6

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

Saved successfully!

Ooh no, something went wrong!