From the w and v matrices from the SVD factorization of a matrix (as obtained from the slaSvd routine), obtain the covariance matrix. (double precision)
n int number of rows and columns in matrices w and v np int first dimension of array containing matrix v nc int first dimension of array to receive cvm w double[n] nxn diagonal matrix w (diagonal elements only) v double[np][np] array containing nxn orthogonal matrix v
work double[n] workspace cvm double[nc][nc] array to receive covariance matrix
Numerical Recipes, Section 14.3. P.T.Wallace Starlink 31 October 1993