http://qs1969.pair.com?node_id=11144919


in reply to Pseudoinversing matrix .. is this correct?

To do this the very easy way, use https://metacpan.org/pod/PDL::LinearAlgebra#mpinv which wraps fast LAPACK functions for PDL, in this case for the pseudo-inverse.