model_server/edge/src/matrix.cxx
/*
 * permute
 * permutes this vector according to the permutation p
 * this[i] becomes this[p[i]]
 * size of p and this vector must be identical
 */
permute
permutes this vector according to the permutation p
this[i] becomes this[p[i]]
size of p and this vector must be identical
permute permutes this vector according to the permutation p this [ i ] becomes this [ p [ i ]] size of p and this vector must be identical
void 
edge_vector::permute(permutation* p) 
{
  int* oldv = new int[size];
  int i;
  for (i=0; i<size; i++) {
    oldv[i]=v[i];
  };
  for (i=0; i<size; i++) {
    v[i]=oldv[p->v[i]];
  };
  delete oldv;
  oldv = 0;
}
void edge_vector :: permute ( permutation * p ) { int * oldv = new int [ size ] ; int i ; for ( i = 0 ; i < size ; i ++ ) { oldv [ i ] = v [ i ] ; } ; for ( i = 0 ; i < size ; i ++ ) { v [ i ] = oldv [ p -> v [ i ] ] ; } ; delete oldv ; oldv = 0 ; }
permute
 permutes this vector according to the permutation p
 this[i] becomes this[p[i]]
 size of p and this vector must be identical
permute permutes this vector according to the permutation p this [ i ] becomes this [ p [ i ]] size of p and this vector must be identical