Converts one-dimensional indices to n-dimensionalindices, or n-dimensional indices to 1D indices.
i A vector of m one-dimensional indices into a, or an m-by-n array of m n-dimensional indices into a.
a = INDGEN( 2, 3 ) & j = INDEX_CONV( a, INDGEN(6) ) & PM, j 0 0 1 0 0 1 1 1 0 2 1 2 PM, INDEX_CONV( a, j ) 0 1 2 3 4 5