Ask a question
Fuel your AI at the ultimate IBM learning event
IBM TechXchange Conference October 21-24, 2024 Mandalay Bay - Las Vegas
Originally posted by: ChristineLi
In IBM XL Fortran for Linux, V15.1 and IBM XL Fortran for AIX, V15.1, a new Fortran 2008 intrinsic function has been added to let you inquire the location of the first or last matching of the wanted value in an array along the specified dimension. Function FINDLOC returns the subscript of the element of wanted value using positive integers. The complete format is FINDLOC(ARRAY, VALUE, DIM, MASK, KIND, BACK) where DIM, MASK, KIND and BACK are optional. The result indicates the subscript of the location of the masked element of ARRAY whose value matches VALUE. The detailed information on arguments is as follows:
To learn more examples, please visit the online product documentation: