Question: Scaling the rows of a Matrix in a particular way

August 01 2012 gauglertodd 0


Suppose I have a matrix M, with rational entries. I need to go row by row and scale each individually by the smallest possible integer such that the entries in each row are integer-valued - anyone have an easy way to do this? It's a large matrix.

Please Wait...