model_server/edge/src/matrix.cxx
/*
 * exchange_columns
 * exchanges columns c1 and c2 of this matrix
 */
exchange_columns
exchanges columns c1 and c2 of this matrix
exchange_columns exchanges columns c1 and c2 of this matrix
void 
matrix::exchange_columns(int c1, int c2) 
{
  for (int i=0; i<rows; i++) {
    int h = m[i].v[c1];
    m[i].v[c1]=m[i].v[c2];
    m[i].v[c2]=h;
  }
}
void matrix :: exchange_columns ( int c1 , int c2 ) { for ( int i = 0 ; i < rows ; i ++ ) { int h = m [ i ] . v [ c1 ] ; m [ i ] . v [ c1 ] = m [ i ] . v [ c2 ] ; m [ i ] . v [ c2 ] = h ; } }
exchange_columns
 exchanges columns c1 and c2 of this matrix
exchange_columns exchanges columns c1 and c2 of this matrix