sinv: Invert a symmetric positive-definite matrix

Description Usage Arguments Details Value Author(s) Examples

View source: R/sinv.R

Description

Inverts a symmetric positive-definite matrix without requiring the Matrix package.

Usage

1
sinv(obj)

Arguments

obj

The symmetric positive-definite matrix

Details

This function does no error checking and it is up to the user to ensure that the input is indeed symmetric, positive-definite, and a matrix.

Value

A matrix of the same size as the input object

Author(s)

Claus Ekstrom, [email protected].

Examples

1
2
m <- matrix(c(1, 0, .5, .5, 0, 1, .5, .5, .5, .5, 1, .5, .5, .5, .5, 1), 4)
sinv(m)

MESS documentation built on May 29, 2017, 2:39 p.m.