Fast computation of sweep(X, FUN = "*", STATS = scale, MARGIN = 1)
.colMultiply_cpp(X, scale)
X
A matrix.
scale
A vector with length the number of rows of X .
A matrix of same size as x.