Learn R Programming

sstvars (version 1.2.5)

spectral_radius: Compute the spectral radius of a square matrix.

Description

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.

Value

A numeric scalar giving the spectral radius of A.

Arguments

A

an arma::mat representing a square real-valued matrix.