model_server/edge/src/matrix.cxx
/*
 * sort_rows
 * returns the permutation to bring the rows of this matrix in such an order
 * that the barycenters of the rows are in non-decreasing order
 */
sort_rows
returns the permutation to bring the rows of this matrix in such an order
that the barycenters of the rows are in non-decreasing order
sort_rows returns the permutation to bring the rows of this matrix in such an order that the barycenters of the rows are in non - decreasing order
permutation* 
matrix::sort_rows() 
{
  floatvector bc(rows);
  for (int r=0; r<rows; r++) bc[r]=barycenter_row(r);
  return bc.sort();
}
permutation * matrix :: sort_rows ( ) { floatvector bc ( rows ) ; for ( int r = 0 ; r < rows ; r ++ ) bc [ r ] = barycenter_row ( r ) ; return bc . sort ( ) ; }
sort_rows
 returns the permutation to bring the rows of this matrix in such an order
 that the barycenters of the rows are in non-decreasing order
sort_rows returns the permutation to bring the rows of this matrix in such an order that the barycenters of the rows are in non - decreasing order