pinv2
Version 1.0.1 (1.69 KB) by
Marco Cococcioni
This function computes the Moore-Penrose generalized inverse of a given matrix.
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)
Cite As
Marco Cococcioni (2026). pinv2 (https://www.mathworks.com/matlabcentral/fileexchange/95153-pinv2), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
