Calculate an approximation of the pseudoinverse of a matrix.
Calculate an approximation of the pseudoinverse of a matrix.
An internal function that uses an approximation of the SVD using the first k singular values of A to calculate the pseudo-inverse. Only used when the cue-cue matrix contains more than 20,000 cues.
random.pseudoinverse(m, verbose=F, k =0)
Arguments
m: A matrix.
k: If k = 0, the default, k will be set to the size of 3/4 of the singular values. If not, the k-rank approximation will be calculated.
"Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions" Nathan Halko, Per-Gunnar Martinsson, Joel A. Tropp http://arxiv.org/abs/0909.4061