model_server/edge/src/matrix.cxx
/*
 * matrix constructor
 * consructs r x c matrix and initializes all elements to zero
 */
matrix constructor
consructs r x c matrix and initializes all elements to zero
matrix constructor consructs r x c matrix and initializes all elements to zero
matrix::matrix(int r, int c) 
{
  rows=r; columns=c;
  m = new edge_vector[r];
  for (int i=0; i<r; i++) {
    m[i].size=c;
    m[i].v=new int[c];
    for (int k=0; k<c; k++) m[i].v[k]=0;
  }
}
matrix :: matrix ( int r , int c ) { rows = r ; columns = c ; m = new edge_vector [ r ] ; for ( int i = 0 ; i < r ; i ++ ) { m [ i ] . size = c ; m [ i ] . v = new int [ c ] ; for ( int k = 0 ; k < c ; k ++ ) m [ i ] . v [ k ] = 0 ; } }
matrix constructor
 consructs r x c matrix and initializes all elements to zero
matrix constructor consructs r x c matrix and initializes all elements to zero