gen_fun::Hadamard_product: don't assume equalities are independent
commit0ba69ed9722e48f096c260eb5b2c76988e2de848
authorSven Verdoolaege <skimo@liacs.nl>
Mon, 21 Aug 2006 01:05:57 +0000 (21 03:05 +0200)
committerSven Verdoolaege <skimo@liacs.nl>
Mon, 21 Aug 2006 01:05:57 +0000 (21 03:05 +0200)
treec5b5cb8caa54d8d1b60fe7418882ceacf0d680a5
parentcd6a527e6aaa2b5c086a91126bf8a45c967ed12e
gen_fun::Hadamard_product: don't assume equalities are independent

In particular, don't try to precompute the resulting dimension,
but rather use the dimension of the first in a series of polytopes
for terms with the same denominator.

In some cases, the number of factors in the denominator may be
smaller than the dimension.  This happens when there were equalities
in the problem, but it may also happen as a result of removing
a common factor in the numerator and the denominator.
In these cases, the assumption that all equalities are independent
would result in a negative computed dimension.
genfun.cc