function outmat = mrow(scalar, inmat, rownum)
% function outmat = mrow(scalar, inmat, rownum)
%
% This Function is intended to mimick the *row matrix operation on
% a TI 83/84 series calculator, which rescales a specified row in
% a matrix by a specified nonzero factor, one of the 3 elementary row
% operations of Gaussian elimination.
%
%  Inputs:  scalar  This is the number by which we want to rescale <rownum>
%            inmat  The matrix we wish to alter via this row operation
%           rownum  The number of the row to be rescaled
%  Output:  outmat  The resulting matrix after the row op is done to <oldmat>

 outmat = inmat;
 outmat(rownum, :) = scalar * outmat(rownum, :);
end
