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.

If the MASK parameter is present, the return value is the position of the first value that has themaximum 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 MAXLOCapplied recursively along the DIM dimensions of the array.MAXVAL 90Return the maximum value of the elements of the argument array. The test elements may belimited by a dimension argument or by a logical mask argument.SynopsisMAXVAL(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 MAXVAL such that if only twoarguments are supplied, the type of the second argument is used to determine if it represents DIMor MASK.Return ValueThe return value is a scalar if no DIM argument is present, or has a rank of n-1 and has a shapespecified by all of the dimensions except the DIM argument dimension.The return value is the value of the largest element of the array if no optional parameters aresupplied. If only the MASK parameter is supplied with the array, then the return value is the valuethat is the maximum of the true elements of MASK.When the DIM argument is supplied, the return value is an array that has a value of MAXVALapplied recursively along the DIM dimensions of the array.MERGE 90This function merges two arguments based on the value of a logical mask.SynopsisMERGE(TSOURCE, FSOURCE, MASK)226 Chapter 6

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

Saved successfully!

Ooh no, something went wrong!