title: Rank r matrix approximation via SVD in Julia?
body: <p>Suppose we have computed the <strong>svd</strong> of a matrix A in Julia via <strong>svd(A).</strong> How would we compute a rank <strong>r</strong> approximation of that matrix A in Julia, given we already have its singular value decomposition?</p>