PwQPolynomial.eval_from_dict: Check whether eval point is in domain
Loading
-
@jdsteve2 The case that's caught by this could be causing you accuracy grief in the modeling. (not very likely, but worth it to rule out)
-
@inducer Initially this seems to be giving me that ValueError when I try to evaluate the 0 polynomial. Should it do that?
>>> import islpy as isl >>> poly = isl.PwQPolynomial('{ 0 }') >>> param_dict = dict(n=128) >>> poly.eval_with_dict(param_dict) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jdsteve2/src/islpy/islpy/__init__.py", line 691, in pwqpolynomial_eval_with_dict raise ValueError("evaluation point outside of domain of " ValueError: evaluation point outside of domain of definition of piecewise quasipolynomial
-
mentioned in commit f73aaeb0
Please register or sign in to comment