I am trying to find the eigenvectors and eigenvalues of an array of matrices without doing a for loop. A simple example would be like:
A[:,:,1] = [1,2;3,4]
A[:,:,2] = [3,4;5,6]
A[:,:,10] = [19,20;21,22]
And the matrix elements can be arbitrary. My question is whether there is an efficient way to solve the eigen problem of each of these matrices without doing a for loop? Can tips of vectorization help us here?