We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e877844 commit 811d5dfCopy full SHA for 811d5df
src/Spaces/IntervalSpace.jl
@@ -2,10 +2,9 @@ Space(d::IntervalOrSegment) = Chebyshev(d)
2
Space(d::FullSpace{<:Real}) = Chebyshev(Line())
3
4
# TODO: mode these functions to ApproxFunBase
5
-# Currently, Space(d::Interval) isn't type-stable, so the spaces are
6
-# explicitly listed in these calls.
7
-Fun(::typeof(identity), d::IntervalOrSegment{<:Number}) =
8
- Fun(Chebyshev(d), [mean(d), complexlength(d)/2])
+function Fun(::typeof(identity), d::IntervalOrSegment{<:Number})
+ Fun(Space(d), [mean(d), complexlength(d)/2])
+end
9
10
# the default domain space is higher to avoid negative ultraspherical spaces
11
function Integral(d::IntervalOrSegment, n::Number)
0 commit comments