R/pascal.matrix.R

Defines functions pascal.matrix

Documented in pascal.matrix

pascal.matrix <- function( n )
{
###
### this function returns an n by n Pascal matrix
###
### Parameter
### n = the row( column ) dimension of the matrix
###
    S <- symmetric.pascal.matrix( n )
    luS <- lu.decomposition( S )
    P <- luS$L
    return( P )
}

Try the matrixcalc package in your browser

Any scripts or data that you put into this service are public.

matrixcalc documentation built on Sept. 15, 2022, 1:05 a.m.