to get all the indices in a 2d array that match a value
return the indices of all the val elements in 2d array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in), | dimension(:,:) | :: | array | ||
| character(len=1), | intent(in) | :: | val | |||
| integer, | intent(out), | dimension(:), allocatable | :: | iloc | ||
| integer, | intent(out), | dimension(:), allocatable | :: | jloc |
return the indices of all the val elements in 2d array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in), | dimension(:,:) | :: | array | ||
| integer, | intent(in) | :: | val | |||
| integer, | intent(out), | dimension(:), allocatable | :: | iloc | ||
| integer, | intent(out), | dimension(:), allocatable | :: | jloc |