Skip to content

Commit

Permalink
use issubset
Browse files Browse the repository at this point in the history
  • Loading branch information
daanhb committed Apr 24, 2020
1 parent 08fd88d commit 4aa6ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bases/fourier/fourier.jl
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function evaluation(::Type{T}, fs::Fourier, gb::GridBasis, grid::EquispacedGrid;
# TODO: cover the case where the EquispacedGrid is like a PeriodicEquispacedGrid
# but with the right endpoint added
return dense_evaluation(T, fs, gb; options...)
elseif support(grid) support(fs)
elseif issubset(support(grid), support(fs))
a, b = endpoints(support(grid))
# We are dealing with a subgrid. The main question is: if we extend it
# to the full support, is it compatible with a periodic grid?
Expand Down

0 comments on commit 4aa6ba7

Please sign in to comment.