Calculate the index corresponding to a given memory offset in a multi-dimensional array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | offset_in |
The memory offset for which to calculate the multi-dimensional index. |
||
| integer, | intent(in) | :: | shape(:) |
The shape of the multi-dimensional array. |
||
| integer, | intent(inout) | :: | index(:) |
The calculated multi-dimensional index corresponding to the given offset. |