Skip to content

Commit b517afc

Browse files
authored
replace non-breaking spaces with regular ones (#107)
1 parent 097523e commit b517afc

28 files changed

+67
-67
lines changed

src/Caching/almostbanded.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function CachedOperator(io::InterlaceOperator{T,1};padding::Bool=false) where T
1919
nds=0
2020
md=0
2121
for k=1:length(io.ops)
22-
if k  i
22+
if k i
2323
d=dimension(rs[k])
2424
nds+=d
2525
md=max(md,d)
@@ -57,7 +57,7 @@ function CachedOperator(io::InterlaceOperator{T,1};padding::Bool=false) where T
5757
for k=1:n
5858
K,J=io.rangeinterlacer[k]
5959

60-
if K  i
60+
if K i
6161
# fill the fill matrix
6262
ret.fill.V[:,bcrow] = Matrix(view(io.ops[K],J:J,jr))
6363
ret.fill.U[k,bcrow] = 1
@@ -104,13 +104,13 @@ function CachedOperator(io::InterlaceOperator{T,2};padding::Bool=false) where T
104104
# we only support block size 1 for now
105105
for k in d∞
106106
bl = blocklengths(ds[k])
107-
if !(bl isa AbstractFill) || getindex_value(bl)  1
107+
if !(bl isa AbstractFill) || getindex_value(bl) 1
108108
return default_CachedOperator(io;padding=padding)
109109
end
110110
end
111111
for k in r∞
112112
bl = blocklengths(rs[k])
113-
if !(bl isa AbstractFill) || getindex_value(bl)  1
113+
if !(bl isa AbstractFill) || getindex_value(bl) 1
114114
return default_CachedOperator(io;padding=padding)
115115
end
116116
end
@@ -191,7 +191,7 @@ function resizedata!(co::CachedOperator{T,AlmostBandedMatrix{T},
191191

192192
k=1
193193
for (K,J) in co.op.rangeinterlacer
194-
if K  ind
194+
if K ind
195195
co.data.fill.V[co.datasize[2]:end,k] = co.op.ops[K][J,co.datasize[2]:n+u]
196196
k += 1
197197
if k > r
@@ -240,7 +240,7 @@ function resizedata!(co::CachedOperator{T,AlmostBandedMatrix{T},
240240

241241
# fill rows
242242
K=k=1
243-
while k  r
243+
while k r
244244
if isfinite(dimension(rs[ri[K][1]]))
245245
co.data.fill.V[co.datasize[2]:end,k] = co.op[K,co.datasize[2]:n+u]
246246
k += 1
@@ -287,7 +287,7 @@ end
287287
function resizedata!(QR::QROperator{CachedOperator{T,AlmostBandedMatrix{T},
288288
MM,DS,RS,BI}},
289289
::Colon,col) where {T,MM,DS,RS,BI}
290-
if col  QR.ncols
290+
if col QR.ncols
291291
return QR
292292
end
293293

@@ -353,7 +353,7 @@ end
353353
function resizedata!(QR::QROperator{CachedOperator{T,AlmostBandedMatrix{T},
354354
MM,DS,RS,BI}},
355355
::Colon,col) where {T<:BlasFloat,MM,DS,RS,BI}
356-
if col  QR.ncols
356+
if col QR.ncols
357357
return QR
358358
end
359359

src/Caching/banded.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343
function resizedata!(QR::QROperator{<:CachedOperator{T,<:BandedMatrix{T},
4444
MM,DS,RS,BI}},
4545
::Colon,col) where {T,MM,DS,RS,BI}
46-
if col  QR.ncols
46+
if col QR.ncols
4747
return QR
4848
end
4949

@@ -96,7 +96,7 @@ end
9696
function resizedata!(QR::QROperator{<:CachedOperator{T,<:BandedMatrix{T},
9797
MM,DS,RS,BI}},
9898
::Colon,col) where {T<:BlasFloat,MM,DS,RS,BI}
99-
if col  QR.ncols
99+
if col QR.ncols
100100
return QR
101101
end
102102

src/Caching/blockbanded.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ QROperator(R::CachedOperator{T,BlockBandedMatrix{T}}) where {T} =
141141
# function resizedata!(QR::QROperator{CachedOperator{T,BlockBandedMatrix{T},
142142
# MM,DS,RS,BI}},
143143
# ::Colon, col) where {T,MM,DS,RS,BI}
144-
# if col ≤ QR.ncols
144+
# if col ≤ QR.ncols
145145
# return QR
146146
# end
147147
#
@@ -214,7 +214,7 @@ function resizedata!(QR::QROperator{CachedOperator{T,BlockBandedMatrix{T},
214214
ds = domainspace(QR)
215215
col = blockstop(ds, COL) # last column
216216

217-
if col  QR.ncols
217+
if col QR.ncols
218218
return QR
219219
end
220220

@@ -297,8 +297,8 @@ function resizedata!(QR::QROperator{CachedOperator{T,BlockBandedMatrix{T},
297297
# TODO: remove these debugging statement
298298
# @assert w_j-1 + M ≤ length(W.data)
299299
# @assert shft + st*(ξ_2-1) + M ≤ length(R.data)
300-
# @assert 0 ≤ w_j-1
301-
# if ! (0 ≤ shft + st*(ξ_2-1))
300+
# @assert 0 ≤ w_j-1
301+
# if ! (0 ≤ shft + st*(ξ_2-1))
302302
# @show shft, st, ξ_2, l, u
303303
# @show κ, bs.block_starts[K1,J]
304304
# @show K1, J

src/Caching/matrix.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function resizedata!(B::CachedOperator{T,Matrix{T}},n::Integer,m::Integer) where
1919
B.data = unsafe_resize!(B.data,:,m)
2020
end
2121

22-
if n  B.datasize[1] && m  B.datasize[2]
22+
if n B.datasize[1] && m B.datasize[2]
2323
# do nothing
2424
B
2525
elseif n B.datasize[1]
@@ -56,7 +56,7 @@ function mulpars(Ac::Adjoint{T,<:QROperatorQ{QROperator{RR,Matrix{T},T},T}},
5656

5757
k=1
5858
yp=view(Y,1:M)
59-
while (k  m+M || norm(yp) > tolerance )
59+
while (k m+M || norm(yp) > tolerance )
6060
if k > maxlength
6161
@warn "Maximum length $maxlength reached."
6262
break
@@ -119,7 +119,7 @@ function mulpars(Ac::Adjoint{T,<:QROperatorQ{QROperator{RR,Matrix{T},T},T}},
119119

120120
k=1
121121
yp=y
122-
while (k  min(m+M,A_dim) || BLAS.nrm2(M,yp,1) > tolerance )
122+
while (k min(m+M,A_dim) || BLAS.nrm2(M,yp,1) > tolerance )
123123
if k > maxlength
124124
@warn "Maximum length $maxlength reached."
125125
break

src/Caching/ragged.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function resizedata!(B::CachedOperator{T,RaggedMatrix{T}},::Colon,n::Integer) wh
3232
end
3333

3434
# avoid padding with negative length
35-
if B.data.cols[n+1]  0
35+
if B.data.cols[n+1] 0
3636
return B
3737
end
3838

src/Domains/Domains.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ function _affine_setdiff(d::Domain, p::Number)
5050
isempty(d) && return d
5151
p d && return d
5252
a,b = endpoints(d)
53-
if leftendpoint(d) > rightendpoint(d)
53+
if leftendpoint(d) > rightendpoint(d)
5454
a,b = b,a
5555
end
56-
UnionDomain(a..p, p..b) # TODO: Clopen interval
56+
UnionDomain(a..p, p..b) # TODO: Clopen interval
5757
end
5858

5959
function _affine_setdiff(d::Domain, pts)
@@ -66,7 +66,7 @@ function _affine_setdiff(d::Domain, pts)
6666
isapprox(db,pts[end];atol=tol) && pop!(pts)
6767

6868
sort!(pts)
69-
leftendpoint(d) > rightendpoint(d) && reverse!(pts)
69+
leftendpoint(d) > rightendpoint(d) && reverse!(pts)
7070
filter!(p->p d,pts)
7171

7272
isempty(pts) && return d

src/Fun.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end
6666
function coefficient(f::Fun,kr::AbstractRange)
6767
b = maximum(kr)
6868

69-
if b  ncoefficients(f)
69+
if b ncoefficients(f)
7070
f.coefficients[kr]
7171
else
7272
[coefficient(f,k) for k in kr]
@@ -591,7 +591,7 @@ function copy(bc::Broadcasted{FunStyle})
591591
end
592592

593593
function copyto!(dest::Fun, bc::Broadcasted{FunStyle})
594-
if broadcastdomain(bc)  domain(dest)
594+
if broadcastdomain(bc) domain(dest)
595595
throw(ArgumentError("Domain of right-hand side incompatible with destination"))
596596
end
597597
ret = copy(bc)

src/LinearAlgebra/RaggedMatrix.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ mutable struct RaggedMatrix{T} <: AbstractMatrix{T}
1414
# make sure the cols are monitonically increasing
1515
@assert 1==cols[1]
1616
for j=1:length(cols)-1
17-
@assert cols[j]  cols[j+1]
17+
@assert cols[j] cols[j+1]
1818
end
19-
@assert cols[end] == length(data)+1
19+
@assert cols[end] == length(data)+1
2020

2121
# make sure we have less entries than the size of the matrix
2222
@assert length(data) m*(length(cols)-1)
@@ -58,7 +58,7 @@ function Base.setindex!(A::RaggedMatrix,v,k::Int,j::Int)
5858

5959
if A.cols[j]+k-1 < A.cols[j+1]
6060
A.data[A.cols[j]+k-1]=v
61-
elseif v  0
61+
elseif v 0
6262
throw(BoundsError(A,(k,j)))
6363
end
6464
v
@@ -115,7 +115,7 @@ for (op,bop) in ((:(Base.rand), :rrand),)
115115
end
116116

117117
function RaggedMatrix{T}(Z::Zeros, colns::AbstractVector{Int}) where {T}
118-
if size(Z,2)  length(colns)
118+
if size(Z,2) length(colns)
119119
throw(DimensionMismatch())
120120
end
121121
RaggedMatrix(zeros(T,sum(colns)), [1; (1 .+cumsum(colns))], size(Z,1))
@@ -137,7 +137,7 @@ RaggedMatrix(A::AbstractMatrix, colns::AbstractVector{Int}) = RaggedMatrix{eltyp
137137
function mul!(y::Vector, A::RaggedMatrix, b::Vector)
138138
m=size(A,2)
139139

140-
if m  length(b) || size(A,1)  length(y)
140+
if m length(b) || size(A,1) length(y)
141141
throw(BoundsError())
142142
end
143143
T=eltype(y)
@@ -151,7 +151,7 @@ end
151151

152152

153153
function BLAS.axpy!(a, X::RaggedMatrix, Y::RaggedMatrix)
154-
if size(X)  size(Y)
154+
if size(X) size(Y)
155155
throw(BoundsError())
156156
end
157157

@@ -181,7 +181,7 @@ colstop(X::SubArray{T,2,RaggedMatrix{T},Tuple{UnitRange{Int},UnitRange{Int}}},
181181

182182
function BLAS.axpy!(a,X::RaggedMatrix,
183183
Y::SubArray{T,2,RaggedMatrix{T},Tuple{UnitRange{Int},UnitRange{Int}}}) where T
184-
if size(X)  size(Y)
184+
if size(X) size(Y)
185185
throw(BoundsError())
186186
end
187187

@@ -194,7 +194,7 @@ function BLAS.axpy!(a,X::RaggedMatrix,
194194
cy=colstop(Y,j)
195195
if cx > cy
196196
for k=cy+1:cx
197-
if X[k,j]  0
197+
if X[k,j] 0
198198
throw(BoundsError("Trying to add a non-zero to a zero."))
199199
end
200200
end
@@ -239,7 +239,7 @@ function mul!(Y::RaggedMatrix,A::RaggedMatrix,B::RaggedMatrix)
239239
col = max(col,colstop(A,k))
240240
end
241241

242-
if col > colstop(Y,j)
242+
if col > colstop(Y,j)
243243
throw(BoundsError())
244244
end
245245
end

src/LinearAlgebra/clenshaw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function chebmult_getindex(cfs::AbstractVector,k::Integer,j::Integer)
285285
end
286286

287287
# Hankel part
288-
if k  2 && k+j-1 n
288+
if k 2 && k+j-1 n
289289
ret += cfs[k+j-1]/2
290290
end
291291

src/LinearAlgebra/helper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ scal!(n::Integer,cst::BlasFloat,ret::DenseArray{T},k::Integer) where {T<:BlasFlo
110110
BLAS.scal!(n,convert(T,cst),ret,k)
111111

112112
function scal!(n::Integer,cst::Number,ret::AbstractArray,k::Integer)
113-
@assert k*n  length(ret)
113+
@assert k*n length(ret)
114114
@simd for j=1:k:k*(n-1)+1
115115
@inbounds ret[j] *= cst
116116
end

0 commit comments

Comments
 (0)