parameters: (arr, size, **kwargs)
return_statement: return np.ravel_multi_index(arr, size, **kwargs)
docstring: similar to MATLAB's sub2ind
  
      Note default order is C-style, not F-style (Fortran/MATLAB)
docstring_summary: similar to MATLAB's sub2ind
docstring_tokens: similar to MATLAB s sub2ind
function: def sub2ind(arr, size, **kwargs):
      """
      similar to MATLAB's sub2ind
  
      Note default order is C-style, not F-style (Fortran/MATLAB)
      """
      return np.ravel_multi_index(arr, size, **kwargs)
function_tokens: def sub2ind ( arr , size , * * kwargs ) : return np . ravel_multi_index ( arr , size , * * kwargs )