powered by
Performs a Moore-Penrose generalized inverse (also called the Pseudoinverse).
matrix_inverse(m, tol = .Machine$double.eps^(2/3))
An inversed matrix.
Matrix for which the inverse is required.
Relative tolerance to detect zero singular values.
pinv from the pracma package
m <- cor(iris[1:4]) matrix_inverse(m)
Run the code above in your browser using DataLab