X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_mat.c;h=3fde011c1e4cc91dc0cc848943284660192b56a8;hb=2b37b4aa395a360f691bb07751123dcd4388a1c6;hp=e6638385d624481e844f9e80c6cb159aaf4881b9;hpb=3eec478353729cbd4ff1b0e424a22c1803af9ab5;p=platform%2Fupstream%2Fisl.git diff --git a/isl_mat.c b/isl_mat.c index e663838..3fde011 100644 --- a/isl_mat.c +++ b/isl_mat.c @@ -675,6 +675,16 @@ error: return NULL; } +/* Replace the variables x in bset by x' given by x = M x', with + * M the matrix mat. + * + * If there are fewer variables x' then there are x, then we perform + * the transformation in place, which that, in principle, + * this frees up some extra variables as the number + * of columns remains constant, but we would have to extend + * the div array too as the number of rows in this array is assumed + * to be equal to extra. + */ struct isl_basic_set *isl_basic_set_preimage(struct isl_ctx *ctx, struct isl_basic_set *bset, struct isl_mat *mat) { @@ -700,7 +710,6 @@ struct isl_basic_set *isl_basic_set_preimage(struct isl_ctx *ctx, if (!bset->dim) goto error; bset->dim->n_out -= mat->n_row - mat->n_col; - bset->extra += mat->n_row - mat->n_col; } t = isl_mat_sub_alloc(ctx, bset->eq, 0, bset->n_eq, 0, mat->n_row);