# JacobiS: The Jacobi Algorithm using Rcpp with a stagewise rotation... In JacobiEigen: Classical Jacobi Eigenvalue Algorithm

## Description

The Classical Jacobi Algorithm with a stagewise protocol

## Usage

 `1` ```JacobiS(x, symmetric = TRUE, only.values = FALSE, eps = 0) ```

## Arguments

 `x` A real symmetric matrix `symmetric` a logical value. Is the matrix symmetric? (Only symmetric matrices are allowed.) `only.values` A logical value: do you want only the eigenvalues? `eps` an error tolerance. 0.0 implies `.Machine\$double.eps` and `sqrt(.Machine\$double.eps)` if `only.values = TRUE`

## Details

Eigenvalues and optionally, eigenvectore, of a real symmetric matrix using the classical Jacobi algorithm, (Jacobi, 1846) using a stagewise rotation protocol

## Value

a list of two components as for `base::eigen`

## Examples

 ```1 2 3 4``` ```V <- crossprod(matrix(runif(40, -1, 1), 8)) JacobiS(V) all.equal(JacobiS(V)\$values, Jacobi(V)\$values) zapsmall(crossprod(JacobiS(V)\$vectors, Jacobi(V)\$vectors)) ```

JacobiEigen documentation built on April 17, 2021, 9:06 a.m.