| parameter | details |
|---|---|
| dims::Tuple{Vararg{Integer}} | size of the array |
| I::Integer... | subscripts(scalar) of the array |
| I::AbstractArray{T<:Integer,1}... | subscripts(vector) of the array |
The second example shows that the result of sub2ind might be very buggy in some specific cases.