Y = pinv2(G) produces a matrix Y of the same dimensions as G',
so that G*Y*G = G, Y*G*Y = Y and G*Y and Y*G are Hermitian.
In other words, pinv2 computes the Moore-Penrose generalized inverse
of the matrix G.
This function is expected to be faster than Matlab builtin function pinv,
although probably less robust than it.
This code is a slightly modified version of the one described in the following paper:
P. Courrieu (2005) "Fast Comptuation of Moore-Penrose Inverse Matrices", Neural Information Processing, 8(2)
引用格式
Marco Cococcioni (2024). pinv2 (https://www.mathworks.com/matlabcentral/fileexchange/95153-pinv2), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2021a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!