/** \brief constructor */
xbt_matrix_t xbt_matrix_new(int lines, int rows,
const unsigned long elmsize,
/** \brief constructor */
xbt_matrix_t xbt_matrix_new(int lines, int rows,
const unsigned long elmsize,
xbt_matrix_t res=xbt_matrix_new(lsize,rsize,
from->elmsize, from->free_f);
xbt_matrix_t res=xbt_matrix_new(lsize,rsize,
from->elmsize, from->free_f);
fprintf(stderr," (%d,%d)=",i,j);
else
fprintf(stderr," ");
fprintf(stderr," (%d,%d)=",i,j);
else
fprintf(stderr," ");
int lsize, int rsize,
int lpos_dst,int rpos_dst,
int lpos_src,int rpos_src,
int lsize, int rsize,
int lpos_dst,int rpos_dst,
int lpos_src,int rpos_src,
- xbt_matrix_get_as(dst,j+lpos_dst,i+rpos_dst,void*) = cpy_f(xbt_matrix_get_ptr(src,j+rpos_src,i+lpos_src));
+ xbt_matrix_get_as(dst,j+lpos_dst,i+rpos_dst,void*) = (*cpy_f)(xbt_matrix_get_ptr(src,j+rpos_src,i+lpos_src));
} else {
memcpy(xbt_matrix_get_ptr(dst,lpos_dst,i+rpos_dst),
xbt_matrix_get_ptr(src,lpos_src,i+rpos_src),
} else {
memcpy(xbt_matrix_get_ptr(dst,lpos_dst,i+rpos_dst),
xbt_matrix_get_ptr(src,lpos_src,i+rpos_src),