function Aprime=replacedisp(A,row1,row2,multiple)
% replaces row1 in a matrix by the sum of row1 and a multiple of row2
% (c) 2013, Bernhard G. Bodmann

Aprime=A;
Aprime(row1,:)=A(row1,:)+multiple*A(row2,:);

printf("Replace row %i by the sum of row %i with %f times row %i:\n",row1,row1,multiple,row2);

dispsysmat(Aprime);

  