Skip to contents

Matrix Invert

Usage

matrix_invert(mat)

Arguments

mat

A 4x4 numeric matrix.

Value

A 4x4 numeric matrix

Examples

matrix_invert(diag(4))
#>      [,1] [,2] [,3] [,4]
#> [1,]    1    0    0    0
#> [2,]    0    1    0    0
#> [3,]    0    0    1    0
#> [4,]    0    0    0    1