Julia Languagesub2ind


Syntax

  • sub2ind(dims::Tuple{Vararg{Integer}}, I::Integer...)
  • sub2ind{T<:Integer}(dims::Tuple{Vararg{Integer}}, I::AbstractArray{T<:Integer,1}...)

Parameters

parameterdetails
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

Remarks

The second example shows that the result of sub2ind might be very buggy in some specific cases.