Build data and AI skills | 50% off

Last chance! 50% off unlimited learning

Sale ends in


correlation (version 0.8.0)

matrix_inverse: Matrix Inversion

Description

Performs a Moore-Penrose generalized inverse (also called the Pseudoinverse).

Usage

matrix_inverse(m, tol = .Machine$double.eps^(2/3))

Arguments

m

Matrix for which the inverse is required.

tol

Relative tolerance to detect zero singular values.

Value

An inversed matrix.

See Also

pinv from the pracma package

Examples

Run this code
# NOT RUN {
m <- cor(iris[1:4])
matrix_inverse(m)
# }

Run the code above in your browser using DataLab