`A' is pre-multiplied by a diagonal matrix, with the vector `r' of replacement factors forming the diagonal, and post-multiplied by a diagonal matrix with the substitution vector `s' forming the diagonal.
'A' is pre-multiplied by a diagonal matrix, with the vector 'r' of replacement factors forming the diagonal, and post-multiplied by a diagonal matrix with the substitution vector 's' forming the diagonal.