svd_inverse: SVD Inverse Of A Square Matrix

svd_inverseR 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)


ForLion documentation built on June 10, 2025, 5:13 p.m.