Fast computation of sweep(X, FUN = "*", STATS = center, MARGIN = 2)
.rowMultiply_cpp(X, scale)
X
A matrix.
scale
A vector with length the number of columns of X.
A matrix of same size as x.