1 function rho = spectral_radius(A)
3 % Compute the spectral radius of ``A``, which is not necessarily
6 % This is slow. Don't use it on big matrices.
10 % ``A`` -- The matrix whose spectral radius you want.
14 % ``rho`` -- The spectral radius of ``A``.
16 rho = max(abs(eig(A)));