I've got a general matrix K that I would like to divide it's row's by the row sums of the matrix. I could get this going by doing
SumK=Total[K,{1}];
P=Flatten[Table[{Part[K, i]/Part[SumK, i]}, {i, 1, 3}], {1, 2}]
Is there a better way of doing this? I'm not sure how much faster I can make it, but you guys always seem to surprise me...
Normalize[#, Total]& /@ matis an answer to your problem). In addition, I also had#/Tr@#& /@ matas an answer (now deleted). I've also edited my answer there to include solutions for row normalizations. – rm -rf Aug 27 '13 at 23:04