Skip to content

Commit d6266d4

Browse files
authored
simplify chebyshev/ultraspherical conversions (#221)
* simplify chebyshev/ultraspherical conversions * undo vector push
1 parent 1afc566 commit d6266d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Spaces/Ultraspherical/UltrasphericalOperators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function Conversion(A::Chebyshev, B::Ultraspherical)
149149
U = domainspace(last(v))
150150
CAU = ConcreteConversion(A, U)
151151
v2 = Union{eltype(v), typeof(CAU)}[v; CAU]
152-
bwsum = (0, (isapproxinteger(mB) ? 2length(v2) : ℵ₀))
152+
bwsum = isapproxinteger(mB) ? (0, 2length(v2)) : (0,ℵ₀)
153153
return ConversionWrapper(TimesOperator(v2, bwsum, (ℵ₀,ℵ₀), bwsum), A, B)
154154
end
155155
throw(ArgumentError("please implement $A$B"))
@@ -183,7 +183,7 @@ function Conversion(A::Ultraspherical,B::Ultraspherical)
183183
vlast = ConcreteConversion(A, Ultraspherical(last(r)-1, d))
184184
v = [v; vlast]
185185
end
186-
bwsum = (0, (isapproxinteger(b-a) ? 2length(v) : ℵ₀))
186+
bwsum = isapproxinteger(b-a) ? (0, 2length(v)) : (0,ℵ₀)
187187
return ConversionWrapper(TimesOperator(v, bwsum, (ℵ₀,ℵ₀), bwsum), A, B)
188188
end
189189
end

0 commit comments

Comments
 (0)