Skip to contents

Invert matrix using RcppArmadillo.

Usage

rxInv(matrix)

Arguments

matrix

matrix to be inverted.

Value

inverse or pseudo inverse of matrix.

Examples

rxInv(matrix(c(2, 1, 1, 2), 2))
#>            [,1]       [,2]
#> [1,]  0.6666667 -0.3333333
#> [2,] -0.3333333  0.6666667