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.
1 parent bae3ab3 commit ba9900fCopy full SHA for ba9900f
src/generic/UnivPoly.jl
@@ -788,10 +788,10 @@ end
788
###############################################################################
789
790
function evaluate(a::UnivPoly, A::Vector{<:Union{NCRingElem, RingElement}})
791
+ isempty(A) && error("Too few values")
792
a2 = data(a)
793
varidx = Int[var_index(x) for x in vars(a2)]
794
isempty(varidx) && return constant_coefficient(a2)
- isempty(A) && error("Number of variables does not match number of values")
795
vals = zeros(parent(A[1]), nvars(parent(a2)))
796
n = length(A)
797
for i in varidx
0 commit comments