deps/kb_meme/meme-5.0.1/src/substmatrix-table.c
/******************************************************************************
  * This function copies a substmatrix_array. The target substmatrix_array
  * must have been previously allocated.
******************************************************************************/
This function copies a substmatrix_array. The target substmatrix_array
must have been previously allocated.
This function copies a substmatrix_array . The target substmatrix_array must have been previously allocated .
static void copy_substmatrix_array(
    SUBSTMATRIX_ARRAY_T *src, 
    SUBSTMATRIX_ARRAY_T *dst
){
  assert(src->length == dst->length);
  int i;
  for (i = 0; i < src->length; i++) {
    dst->t[i] = src->t[i];
    set_substmatrix_matrix(dst, i, src->substmatrix[i]);
  }
}
static void copy_substmatrix_array ( SUBSTMATRIX_ARRAY_T * src , SUBSTMATRIX_ARRAY_T * dst ) { assert ( src -> length == dst -> length ) ; int i ; for ( i = 0 ; i < src -> length ; i ++ ) { dst -> t [ i ] = src -> t [ i ] ; set_substmatrix_matrix ( dst , i , src -> substmatrix [ i ] ) ; } }
This function copies a substmatrix_array.
This function copies a substmatrix_array .