The R Project SVN R-packages

Rev

Rev 963 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

Hilbert <- function(n)
{   ## generate the Hilbert matrix of dimension n
    n <- as.integer(n)
    i <- seq(length = n)
    new("dpoMatrix", x = c(1/outer(i - 1, i, "+")), Dim = c(n,n))
}