def algo_3(A, l=8, method='srft', verbose=False): """ Computes the third algorithm """ if verbose: print "Computing Fast Randomized Range Finder" Q, _ = fast_randomized_range_finder(A, l=l, method=method) if verbose: print "Compute direct SVD" # return row_extraction_svd(A, Q) return direct_svd(A, Q)
def algo_3(A, l=8, method='srft'): """ Computes the third algorithm """ Q, _ = fast_randomized_range_finder(A, l=l, method=method) return direct_svd(A, Q)