Skip to content

Commit 4af38a6

Browse files
authored
Fix Laurent Conversion (#91)
1 parent 8e456f2 commit 4af38a6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunFourier"
22
uuid = "59844689-9c9d-51bf-9583-5b794ec66d30"
3-
version = "0.3.20"
3+
version = "0.3.21"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/ApproxFunFourier.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import ApproxFunBase: Fun, SumSpace, SubSpace, NoSpace, IntervalOrSegment,
3636
hesseneigvals, chebyshev_clenshaw, roots, EmptyDomain,
3737
chebmult_getindex, components, affine_setdiff, complexroots,
3838
assert_integer, companion_matrix, InterlaceOperator_Diagonal,
39-
evaluation_point, SpecialEvalPtType
39+
evaluation_point, SpecialEvalPtType, PermutationOperator
4040

4141
import BandedMatrices: bandwidths
4242

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ end
328328
@test Evaluation(sp, pt, 2) * f f''(pt)
329329
end
330330
end
331+
332+
f = Fun(cos, Laurent(0..2pi))
333+
g = Conversion(Laurent(0..2pi), Laurent(2pi..0)) * f
334+
@test space(g) == Laurent(2pi..0)
335+
@test g(pi/3) f(pi/3)
331336
end
332337

333338
@testset "Circle" begin

0 commit comments

Comments
 (0)