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