I am using a fragment shader to, among other things, calculate the eigenvectors of a 2x2 matrix. I can calculate the eigenvalues just fine using the quadratic formula on the characteristic equation.
You can think of eigenvalues and their associated eigenvectors as a decomposition of a matrix. Eigenvalues and eigenvectors are needed for PCA. But computing eigenvalues and eigenvectors directly is ...