model_server/edge/src/matrix.cxx
/*
 * copy
 * makes this matrix a copy of matrix n
 * rows and columns of n and this matrix must be identical
 */
copy
makes this matrix a copy of matrix n
rows and columns of n and this matrix must be identical
copy makes this matrix a copy of matrix n rows and columns of n and this matrix must be identical
void 
matrix::copy(matrix* n) 
{
  rows=n->rows;
  columns=n->columns;
  m = new edge_vector[rows];
  for (int i=0; i<rows; i++) {
    m[i].size=columns;
    m[i].v=new int[columns];
    for (int k=0; k<columns; k++) m[i].v[k]=n->m[i].v[k];
  }
}
void matrix :: copy ( matrix * n ) { rows = n -> rows ; columns = n -> columns ; m = new edge_vector [ rows ] ; for ( int i = 0 ; i < rows ; i ++ ) { m [ i ] . size = columns ; m [ i ] . v = new int [ columns ] ; for ( int k = 0 ; k < columns ; k ++ ) m [ i ] . v [ k ] = n -> m [ i ] . v [ k ] ; } }
copy
 makes this matrix a copy of matrix n
 rows and columns of n and this matrix must be identical
copy makes this matrix a copy of matrix n rows and columns of n and this matrix must be identical