예제 #1
0
파일: table.cpp 프로젝트: YPCC/mfem
void Table::Copy(Table & copy) const
{
   int * i_copy = new int[size+1];
   int * j_copy = new int[I[size]];

   memcpy(i_copy, I, sizeof(int)*(size+1) );
   memcpy(j_copy, J, sizeof(int)*size);

   copy.SetIJ(i_copy, j_copy, size);
}