@@ -29,9 +29,9 @@ Base.stride(M::ConcreteMultiplication{<:Ultraspherical,<:Chebyshev}) =
2929Base. stride (M:: ConcreteMultiplication{<:Ultraspherical,<:Ultraspherical} ) =
3030 stride (M. f)
3131
32- @inline function _Multiplication (f:: Fun{<:Chebyshev} , sp:: Ultraspherical{<:Union{ Integer,StaticInt} } )
32+ @inline function _Multiplication (f:: Fun{<:Chebyshev} , sp:: Ultraspherical{<:Integer} )
3333 if order (sp) == 1
34- cfs = f . coefficients
34+ cfs = coefficients (f)
3535 MultiplicationWrapper (f,
3636 SpaceOperator (
3737 SymToeplitzOperator (cfs/ 2 ) +
@@ -43,10 +43,10 @@ Base.stride(M::ConcreteMultiplication{<:Ultraspherical,<:Ultraspherical}) =
4343 end
4444end
4545@static if VERSION >= v " 1.8"
46- Base. @constprop aggressive Multiplication (f:: Fun{<:Chebyshev} , sp:: Ultraspherical{<:Union{ Integer,StaticInt} } ) =
46+ Base. @constprop aggressive Multiplication (f:: Fun{<:Chebyshev} , sp:: Ultraspherical{<:Integer} ) =
4747 _Multiplication (f, sp)
4848else
49- Multiplication (f:: Fun{<:Chebyshev} , sp:: Ultraspherical{<:Union{ Integer,StaticInt} } ) = _Multiplication (f, sp)
49+ Multiplication (f:: Fun{<:Chebyshev} , sp:: Ultraspherical{<:Integer} ) = _Multiplication (f, sp)
5050end
5151
5252
@@ -199,7 +199,7 @@ function maxspace_rule(A::Ultraspherical, B::Ultraspherical)
199199end
200200
201201function getindex (M:: ConcreteConversion{<:Chebyshev,U,T} ,
202- k:: Integer ,j:: Integer ) where {T, U<: Ultraspherical{<:Union{ Integer, StaticInt} } }
202+ k:: Integer ,j:: Integer ) where {T, U<: Ultraspherical{<:Integer} }
203203 # order must be 1
204204 if k== j== 1
205205 one (T)
215215
216216function getindex (M:: ConcreteConversion{U1,U2,T} ,
217217 k:: Integer ,j:: Integer ) where {DD,RR,
218- U1<: Ultraspherical{<:Union{ Integer, StaticInt} ,DD,RR} ,
219- U2<: Ultraspherical{<:Union{ Integer, StaticInt} ,DD,RR} ,T}
218+ U1<: Ultraspherical{<:Integer,DD,RR} ,
219+ U2<: Ultraspherical{<:Integer,DD,RR} ,T}
220220 # we can assume that λ==m+1
221221 λ= order (rangespace (M))
222222 c= λ- one (T) # this supports big types
@@ -249,8 +249,8 @@ function getindex(M::ConcreteConversion{U1,U2,T},
249249end
250250
251251
252- bandwidths (C:: ConcreteConversion{<:Chebyshev,<:Ultraspherical{<:Union{ Integer,StaticInt} }} ) = 0 ,2 # order == 1
253- bandwidths (C:: ConcreteConversion{<:Ultraspherical{<:Union{ Integer,StaticInt}} ,<:Ultraspherical{<:Union{ Integer,StaticInt} }} ) = 0 ,2
252+ bandwidths (C:: ConcreteConversion{<:Chebyshev,<:Ultraspherical{<:Integer}} ) = 0 ,2 # order == 1
253+ bandwidths (C:: ConcreteConversion{<:Ultraspherical{<:Integer} ,<:Ultraspherical{<:Integer}} ) = 0 ,2
254254
255255function bandwidths (C:: ConcreteConversion{<:Chebyshev,<:Ultraspherical} )
256256 orderone = order (rangespace (C)) == 1
@@ -266,7 +266,7 @@ function bandwidths(C::ConcreteConversion{<:Ultraspherical,<:Ultraspherical})
266266 offbyone ? (0 ,2 ) : (0 ,ℵ₀)
267267end
268268
269- Base. stride (C:: ConcreteConversion{<:Chebyshev,<:Ultraspherical{<:Union{ Integer,StaticInt} }} ) = 2
269+ Base. stride (C:: ConcreteConversion{<:Chebyshev,<:Ultraspherical{<:Integer}} ) = 2
270270Base. stride (C:: ConcreteConversion{<:Ultraspherical,<:Ultraspherical} ) = 2
271271
272272isdiag (:: ConcreteConversion{<:Chebyshev,<:Ultraspherical} ) = false
@@ -276,16 +276,14 @@ isdiag(::ConcreteConversion{<:Ultraspherical,<:Ultraspherical}) = false
276276# # coefficients
277277
278278# return the space that has banded Conversion to the other
279- function conversion_rule (a:: Chebyshev ,b:: Ultraspherical{<:Union{ Integer,StaticInt} } )
279+ function conversion_rule (a:: Chebyshev , b:: Ultraspherical{<:Integer} )
280280 if domainscompatible (a,b)
281281 a
282282 else
283283 NoSpace ()
284284 end
285285end
286286
287- conversion_rule (a:: Ultraspherical{<:StaticInt} , b:: Ultraspherical{<:StaticInt} ) =
288- _conversion_rule (a, b)
289287function conversion_rule (a:: Ultraspherical{LT} ,b:: Ultraspherical{LT} ) where {LT}
290288 _conversion_rule (a, b)
291289end
0 commit comments