You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to convert a numpy.float64 instances to a RatNumRef with the RealVal function, but not a numpy.int64 instance to a IntNumRef with IntVal, is this intentional?
More specifically, the following works and produces 6/5:
from z3 import *
import numpy
RealVal(numpy.float64(1.2))
but the following raises a Python value cannot be used as a Z3 integer exception:
from z3 import *
import numpy
IntVal(numpy.int64(1))
Converting a numpy.int64 to a RatNumRef with RealVal does seem to work.
The text was updated successfully, but these errors were encountered:
It is possible to convert a numpy.float64 instances to a RatNumRef with the RealVal function, but not a numpy.int64 instance to a IntNumRef with IntVal, is this intentional?
More specifically, the following works and produces
6/5
:but the following raises a
Python value cannot be used as a Z3 integer
exception:Converting a numpy.int64 to a RatNumRef with RealVal does seem to work.
The text was updated successfully, but these errors were encountered: