Computes the sample correlation matrix of the columns of X,
optionally with observation weights and column-blocked covariance
accumulation.
Arguments
- X
Numeric matrix or
adgeMatrixof shape[n, p].- center
Logical; when
TRUE(default) column means are subtracted before computing covariances.- weights
Numeric vector of length
n, orNULLfor unweighted correlation.- block_size
Positive integer or
NULL. When non-NULL, covariances are accumulated in blocks of this many columns to limit memory usage.