Learn R Programming

Matrix (version 1.5-4)

Hilbert: Generate a Hilbert matrix

Description

Generate the n by n symmetric Hilbert matrix. Because these matrices are ill-conditioned for moderate to large n, they are often used for testing numerical linear algebra code.

Usage

Hilbert(n)

Value

the n by n symmetric Hilbert matrix as a

"dpoMatrix" object.

Arguments

n

a non-negative integer.

See Also

the class dpoMatrix

Examples

Run this code
Hilbert(6)

Run the code above in your browser using DataLab