We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dummy_derivative_graph
1 parent 9a3a0d6 commit 83faba1Copy full SHA for 83faba1
src/structural_transformation/partial_state_selection.jl
@@ -77,10 +77,12 @@ function dummy_derivative_graph!(
77
# only accept small integers to avoid overflow
78
is_all_small_int = all(_J) do x′
79
x = unwrap(x′)
80
+ SU.isconst(x) || return false
81
x isa Number || return false
- isinteger(x) && typemin(Int8) <= x <= typemax(Int8)
82
+ x = value(x)
83
+ isinteger(x) && typemin(Int8) <= Int(x) <= typemax(Int8)
84
end
- J = is_all_small_int ? Int.(unwrap.(_J)) : nothing
85
+ J = is_all_small_int ? Int.(value.(_J)) : nothing
86
87
while true
88
nrows = length(eqs)
0 commit comments