powerMethod: C++ implementation of the power method (von Mises iteration)...

View source: R/locStra.r

powerMethodR Documentation

C++ implementation of the power method (von Mises iteration) to compute the largest eigenvector of a dense input matrix.

Description

C++ implementation of the power method (von Mises iteration) to compute the largest eigenvector of a dense input matrix.

Usage

powerMethod(m, initvector = 0)

Arguments

m

Symmetric matrix for which the largest eigenvector is sought.

initvector

Optional vector compatible with the input matrix which serves as a starting value for the iteration. Default is zero.

Value

The largest eigenvector of m.

References

Richard von Mises and Hilda Pollaczek-Geiringer (1929). Praktische Verfahren der Gleichungsaufloesung. ZAMM Zeitschrift fuer Angewandte Mathematik und Mechanik, 9:152-164.

Examples

require(locStra)
m <- matrix(1:9,3)
print(powerMethod(m))


locStra documentation built on April 13, 2022, 1:07 a.m.

Related to powerMethod in locStra...