powered by
eig_decomp(M, n_eigs, sym = isSymmetric(M))
eig_decomp(cbind(c(1,-1), c(-1,1)), 2)
Run the code above in your browser using DataLab