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