I have been given the SVD representation of an image (Sigma, Uk, Vk) - I need to reconstruct the image by multiplying out the truncated SVD.
I have tried: k = Uk.shape[1] return (Uk * Sigma[:k]).dot(VkT)
I have also used np.diag to convert Sigma from a 1D array to a diagonal matrix.
close..