a (array) -- Input array.
indices (array) -- Indices array. These should be broadcastable with
the input array excluding the axis dimension.
axis (int or None) -- Axis in the input to take the values from. If
axis == None the array is flattened to 1D prior to the indexing
operation.