This internal helper function computes the spectral radius of a square matrix,
defined as the maximum modulus of its eigenvalues. The computation is carried
out using an exact eigenvalue decomposition via RcppArmadillo, ensuring
numerical accuracy and mathematical correctness.
A numeric scalar giving the spectral radius of A.
an arma::mat representing a square real-valued matrix.