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

**URL:** <https://discourse.julialang.org/t/how-to-use-maxloc-array-dim-mask-kind-back-function-in-julia/76107>\
**Category:** General Usage\
**Tags:** fortran\
**Created:** [February 9, 2022, 6:40pm UTC](https://discourse.julialang.org/t/how-to-use-maxloc-array-dim-mask-kind-back-function-in-julia/76107 "2022-02-09T18:40:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aksahoo](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@aksahoo](https://discourse.julialang.org/u/aksahoo)\
**Post date:** [February 9, 2022, 6:40pm UTC](https://discourse.julialang.org/t/how-to-use-maxloc-array-dim-mask-kind-back-function-in-julia/76107/1 "2022-02-09T18:40:36Z")

</div>

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.
