The convergence rate of the Jacobi method is however poor, one needs typically 3n^2-5n^2 rotations and each rotation requires 4n operations, resulting in a total of 12n^3-20n^3 operations in order to zero out non-diagonal matrix elements.