I have an ndarray:
ndaM = np.array([[1,2,3],[4,5,6],[7,8,9]]);
and a vector of 0s and 1s:
vSet = [0,1,1];
How do I use vSet to extract the submatrix with only rows and columns whose index is nonzero in vSet? In this case, the matrix
[[5,6],[8,9]]