eigensort: Spectral Decomposition of a Symmetric Matrix

View source: R/eigensort.R

eigensortR Documentation

Spectral Decomposition of a Symmetric Matrix

Description

eigensort performs the spectral decomposition of a symmetric matrix. The eigenvalues and eigenvectors are sorted in increasing order by eigenvalues.

Usage

eigensort(x)

Arguments

x

Symmetric matrix, either sparse or dense, to be decomposed.

Value

A list containing:

  • evalues: A vector of sorted eigenvalues in increasing order.

  • evectors: A matrix of corresponding eigenvectors.

Examples

A <- matrix(1, ncol=2, nrow=2)
dec <- eigensort(A)

gasper documentation built on Oct. 27, 2023, 1:07 a.m.