Skip to content

Commit 55ece03

Browse files
authored
Minor formatting improvements (#115)
1 parent ae92c07 commit 55ece03

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

src/Spaces/Ultraspherical/UltrasphericalOperators.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,20 +224,21 @@ Base.stride(C::ConcreteConversion{<:Ultraspherical,<:Ultraspherical}) = 2
224224
## coefficients
225225

226226
# return the space that has banded Conversion to the other
227-
conversion_rule(a::Chebyshev,b::Ultraspherical{Int}) =
227+
function conversion_rule(a::Chebyshev,b::Ultraspherical{Int})
228228
if domainscompatible(a,b)
229229
a
230230
else
231231
NoSpace()
232232
end
233+
end
233234

234-
conversion_rule(a::Ultraspherical{LT},b::Ultraspherical{LT}) where {LT} =
235+
function conversion_rule(a::Ultraspherical{LT},b::Ultraspherical{LT}) where {LT}
235236
if domainscompatible(a,b) && isapproxinteger(order(a)-order(b))
236237
order(a) < order(b) ? a : b
237238
else
238239
NoSpace()
239240
end
240-
241+
end
241242

242243

243244
function coefficients(g::AbstractVector,sp::Ultraspherical{Int},C::Chebyshev)
@@ -259,10 +260,10 @@ end
259260

260261

261262
# TODO: include in getindex to speed up
262-
Integral(sp::Chebyshev{DD},m::Integer) where {DD<:IntervalOrSegment} =
263+
function Integral(sp::Chebyshev{DD},m::Integer) where {DD<:IntervalOrSegment}
263264
IntegralWrapper(TimesOperator([Integral(Ultraspherical(m,domain(sp)),m),
264265
Conversion(sp,Ultraspherical(m,domain(sp)))]),m)
265-
266+
end
266267

267268

268269

test/ChebyshevTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ import ApproxFunOrthogonalPolynomials: forwardrecurrence
176176
end
177177

178178
@testset "Do not overresolve #7" begin
179-
@test ncoefficients(Fun(x->sin(400*pi*x),-1..1))  1400
179+
@test ncoefficients(Fun(x->sin(400*pi*x),-1..1)) 1400
180180
end
181181

182182
@testset "Bug from Trogdon" begin

test/ODETest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ import ApproxFunBase: Multiplication, testraggedbelowoperator, testbandedoperato
208208

209209
u = v[1] + setdomain(v[2], Domain(1..2)) + setdomain(v[3], Domain(2..3))
210210

211-
@test abs(u'(1.3) + u(1.3-1) )  10eps()
211+
@test abs(u'(1.3) + u(1.3-1) ) 10eps()
212212
end
213213

214214
@testset "Tenth order" begin

test/OperatorTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ import ApproxFunOrthogonalPolynomials: JacobiZ
230230
f=exp(x)
231231
u=[B;C]\[[0.,0.],f]
232232

233-
@test abs(u(-1))  10eps()
234-
@test abs(u(1))  10eps()
233+
@test abs(u(-1)) 10eps()
234+
@test abs(u(1)) 10eps()
235235

236236

237237
f=(1-x^2)*exp(x)

test/PDETest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ import ApproxFunBase: testbandedblockbandedoperator, testblockbandedoperator, te
241241
for KO in [Operator(I,factor(S,1))rdirichlet(factor(S,1)),
242242
rdirichlet(factor(S,1))Operator(I,factor(S,2))]
243243
testblockbandedoperator(KO)
244-
@test norm((KO*u-Fun(ff,rangespace(KO))).coefficients)  1E-10
244+
@test norm((KO*u-Fun(ff,rangespace(KO))).coefficients) 1E-10
245245
end
246246
end
247247

0 commit comments

Comments
 (0)