Simplify scatter by exploiting numpy indexing
Simplify scatter by exploiting numpy indexing

Several values can be read at once from a numpy array by specifying a
list of array indices to __getitem__.

e.g.,

    >>> import numpy as np
    >>> data = np.arange(9, -1, -1)
    >>> data
    array([9, 8, 7, 6, 5, 4, 3, 2, 1, 0])
    >>> data[[1, 3, 7]]
    array([8, 6, 2])

cfobel/python___scatter_gather