Moler Matrix

Share:

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))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.