I\'m dealing with a large N-D numpy array. I would like to keep only those elements present in a different numpy array, and set the remaining values to 0.
for example