How to use MAXLOC(ARRAY, DIM , MASK [,KIND] [,BACK]) function in Julia?

I did find the argmax function of julia but it does not consider the mask option of the MAXLOC function of fortran.
Please suggest how to find the location of maximum value of matrix with the mask.
Or how to call the maxloc function from fortran library. Please provide the library name (if possible the) julia function.