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 ef7e9fb commit 69dcb3bCopy full SHA for 69dcb3b
src/system.jl
@@ -14,11 +14,19 @@ end
14
function System(polys::Vector{<:MP.AbstractPolynomialLike}, variables=_variables(polys))
15
System([Polynomial(p, variables) for p in polys])
16
end
17
-_variables(polys) = sort!(union(Iterators.flatten(MP.variables.(ps))), rev=true)
+_variables(polys) = sort!(union(Iterators.flatten(MP.variables.(polys))), rev=true)
18
19
Base.length(F::System) = length(F.polys)
20
Base.getindex(F::System, i) = getindex(F.polys, i)
21
22
+
23
+"""
24
+ nvariables(F::System)
25
26
+Returns the number of variables of `F`.
27
28
+nvariables(F::System) = size(exponents(F[1]), 1)
29
30
"""
31
32
JacobianConfig(F::Vector{Polynomial{T}}, [x::AbstractVector{S}])
0 commit comments