Matrix mathematical helper routines.
Yields covariance matrix from input matrix whose columns are variable observations
If true, return correlation rather than covariance
Input matrix of observations, with a variable per column
Return a matrix whose rows are demeaned
The matrix to demean