%% Function pivotrowmax( V ) 
%%
%% By: Michael K. Pellegrino
%%
%% input: M = a vector containing pivot ratios
%% output: ret = the row of the entry with the maximum positive value
%%

function [ret] = pivotrowmax( V )
  [nrow,ncol]=size( V );
  for i=1:ncol
    if( V(i) == max(V) )
      ret=i;
      return;
    endif
  endfor
  ret=-1;
endfunction
