Multiplies row n of a matrix (or element n of a vector) by a constant xfactor, and returns the modified matrix.