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