moler: Moler Matrix

Description Usage Arguments Details Value See Also Examples

View source: R/moler.R

Description

Generate the Moler matrix of size n x n. The Moler matrix is for testing eigenvalue computations.

Usage

1
moler(n)

Arguments

n

integer

Details

The Moler matrix for testing eigenvalue computations is a symmetric matrix with exactly one small eigenvalue.

Value

matrix of size n x n

See Also

wilkinson

Examples

1
2
(a <- moler(10))
min(eig(a))

pracma documentation built on June 21, 2017, 9:01 a.m.

Search within the pracma package
Search all R packages, documentation and source code