SVDgen function

SVD with metrics and smoothing approximation