Exercise "matrix diagonalization"

  1. Implement the Jacobi rotation method.
  2. Investigate the time it takes to diagonalize a matrix with classic and cyclic Jacobi algorithms for the following classes of (real symmetric) matrices:
    1. random matrices;
    2. matrices which are diagonal except for the last column, which is random.