Use an index array to construct a new array from a set of choices.
Given an array of integers and a set of n choice arrays, this method will create a new array that merges each of the choice arrays. Where a value in a is i, the new array will have the value that choices[i] contains in the same place.
Parameters: | a : int array
choices : sequence of arrays
out : array, optional
mode : {‘raise’, ‘wrap’, ‘clip’}, optional
|
---|---|
Returns: | merged_array : array |
See also