I have a matrix X and a list centres. I want to create a new numpy matrix td_X.
I want to populate td_X with the which is made up of the rows of X where the index is equal to centres. In pseudocode:
for each in centers:
td_X.append(X[eacj])
How can I do this using Python?
np.array(x)???