R/matrix.inverse.R

Defines functions matrix.inverse

Documented in matrix.inverse

matrix.inverse <- function( x )
{
###
### this function returns the inverse of a square matrix
###
### Parameters
### x = a square numeric matrix
###
    if ( !is.square.matrix( x ) )
        stop( "argument x is not a square matrix" )
    return( solve( x ) )
}

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.