Skip to content

Commit 08d8b3c

Browse files
committed
Fixes for TypedPolynomials
1 parent 7bb3714 commit 08d8b3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/polynomial.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ polynomial(f::Function, mv::AbstractVector{<:AbstractMonomialLike}) = polynomial
6161
polynomial(a::AbstractVector, x::AbstractVector, s::ListState=MessyState()) = polynomial([α * m for (α, m) in zip(a, x)], s)
6262

6363
polynomial(ts::AbstractVector, s::ListState=MessyState()) = sum(ts)
64+
polynomial!(ts::AbstractVector, s::ListState=MessyState()) = sum(ts)
6465

6566
polynomial!(ts::AbstractVector{<:AbstractTerm}, s::SortedUniqState) = polynomial(coefficient.(ts), monomial.(ts), s)
6667

test/mutable_arithmetics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ end
7272

7373
Mod.@polyvar x y
7474

75-
@testset "MutableArithmetics with variables in $T" for T in [Int, BigInt]
75+
@testset "MutableArithmetics with variables" begin
7676
# Creating 7 different variables here gives a long compile time for TypedPolynomials
7777
all_tests(x, y, x, y, x, y, x)
7878
end
7979

80-
@testset "MutableArithmetics with monomials in $T" for T in [Int, BigInt]
80+
@testset "MutableArithmetics with monomials" begin
8181
a = x^2
8282
b = y^2
8383
c = x

0 commit comments

Comments
 (0)