Skip to content

Commit 9f6b745

Browse files
authored
Type-stable ChebyshevT multiplication (#537)
1 parent 8ed70d8 commit 9f6b745

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "Polynomials"
22
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
33
license = "MIT"
44
author = "JuliaMath"
5-
version = "4.0.3"
5+
version = "4.0.4"
66

77
[deps]
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/polynomials/chebyshev.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function Base.:*(p1::MutableDensePolynomial{B,T,X}, p2::MutableDensePolynomial{B
174174
z2 = _c_to_z(coeffs(p2))
175175
prod = fastconv(z1, z2)
176176
cs = _z_to_c(prod)
177-
ret = ChebyshevT(cs,X)
177+
ret = ChebyshevT(cs, Var(X))
178178
return ret
179179
end
180180

test/ChebyshevT.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ end
124124
target[abs(i - j) + 1] += 0.5
125125
c1 = ChebyshevT(vcat(zeros(i), 1))
126126
c2 = ChebyshevT(vcat(zeros(j), 1))
127-
@test c1 * c2 ChebyshevT(target)
127+
@test @inferred(c1 * c2) ChebyshevT(target)
128128

129129
# divrem
130130
target = c1 + c2

0 commit comments

Comments
 (0)