svd_inverse {ForLion}R Documentation

SVD Inverse Of A Square Matrix

Description

This function returns the inverse of a matrix using singular value decomposition. If the matrix is a square matrix, this should be equivalent to using the solve function. If the matrix is not a square matrix, then the result is the Moore-Penrose pseudo inverse.

Usage

svd_inverse(x)

Arguments

x

the matrix for calculation of inverse

Value

the inverse of the matrix x

Examples

x = diag(4)
svd_inverse(x)


[Package ForLion version 0.3.0 Index]