Skip to content

Commit 7e314b3

Browse files
committed
Fix
1 parent 2f7f8c3 commit 7e314b3

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/monomial_vector.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,22 @@ function _fill_exponents!(
179179
return reverse!(view(Z, start:length(Z)))
180180
end
181181

182+
function _fill_exponents!(
183+
Z::Vector{Vector{Int}},
184+
n,
185+
degs::AbstractVector{Int},
186+
::Type{V},
187+
::Type{MP.Graded{M}},
188+
filter::Function,
189+
) where {V,M}
190+
# For non-commutative, lower degree need to create a vector of exponent as large as for the highest degree
191+
maxdeg = maximum(degs, init = 0)
192+
for deg in sort(degs)
193+
_fill_exponents!(Z, n, deg, V, M, filter, maxdeg)
194+
end
195+
return
196+
end
197+
182198
# List exponents in decreasing Graded Lexicographic Order
183199
function _all_exponents(
184200
n,

test/mvp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ const mvp_test =
44
const Mod = DynamicPolynomials
55
const MP = MultivariatePolynomials
66
include(joinpath(mvp_test, "utils.jl"))
7-
#include(joinpath(mvp_test, "commutativetests.jl"))
7+
include(joinpath(mvp_test, "commutativetests.jl"))
88
include(joinpath(mvp_test, "noncommutativetests.jl"))

0 commit comments

Comments
 (0)