Skip to content

Commit d6fdfea

Browse files
authored
use NTuple{2,UnitRange{Int}} (#203)
* use NTuple{2,UnitRange{Int}} * version bump to v0.6.15
1 parent aabc765 commit d6fdfea

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunOrthogonalPolynomials"
22
uuid = "b70543e2-c0d9-56b8-a290-0d4d6d4de211"
3-
version = "0.6.14"
3+
version = "0.6.15"
44

55
[deps]
66
ApproxFunBase = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"

src/Spaces/Chebyshev/ChebyshevOperators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function getindex(op::ConcreteDirichlet{<:Chebyshev},
148148
end
149149

150150
function Matrix(S::SubOperator{T,ConcreteDirichlet{C,V,T},
151-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {C<:Chebyshev,V,T}
151+
NTuple{2,UnitRange{Int}}}) where {C<:Chebyshev,V,T}
152152
ret = Array{T}(undef, size(S)...)
153153
kr,jr = parentindices(S)
154154
isempty(kr) && return ret
@@ -181,7 +181,7 @@ getindex(M::ConcreteMultiplication{C,PS,T},k::Integer,j::Integer) where {PS<:Pol
181181
M[k:k,j:j][1,1]
182182

183183

184-
function BandedMatrix(S::SubOperator{T,ConcreteMultiplication{C,C,T},Tuple{UnitRange{Int},UnitRange{Int}}}) where {C<:Chebyshev,T}
184+
function BandedMatrix(S::SubOperator{T,ConcreteMultiplication{C,C,T},NTuple{2,UnitRange{Int}}}) where {C<:Chebyshev,T}
185185
ret = BandedMatrix(Zeros, S)
186186

187187
kr,jr=parentindices(S)

src/Spaces/PolynomialSpace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function jac_gbmm!(α, J, B, β, C, b, valJ, valBC)
250250
end
251251

252252
function BandedMatrix(S::SubOperator{T,ConcreteMultiplication{C,PS,T},
253-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {PS<:PolynomialSpace,T,C<:PolynomialSpace}
253+
NTuple{2,UnitRange{Int}}}) where {PS<:PolynomialSpace,T,C<:PolynomialSpace}
254254
M=parent(S)
255255
kr,jr=parentindices(S)
256256
f=M.f

src/Spaces/Ultraspherical/ContinuousSpace.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ end
287287

288288

289289
function BlockBandedMatrix(S::SubOperator{T,<:ConcreteDirichlet{<:TensorChebyshevDirichlet},
290-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {T}
290+
NTuple{2,UnitRange{Int}}}) where {T}
291291
P=parent(S)
292292
ret=BlockBandedMatrix(Zeros, S)
293293
kr,jr=parentindices(S)

src/fastops.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#####
1212

1313
function BandedMatrix(S::SubOperator{T,ConcreteConversion{Chebyshev{DD,RR},Ultraspherical{Int,DD,RR},T},
14-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {T,DD,RR}
14+
NTuple{2,UnitRange{Int}}}) where {T,DD,RR}
1515
# we can assume order is 1
1616
ret = BandedMatrix{eltype(S)}(undef, size(S), bandwidths(S))
1717
kr,jr = parentindices(S)
@@ -32,7 +32,7 @@ function BandedMatrix(S::SubOperator{T,ConcreteConversion{Chebyshev{DD,RR},Ultra
3232
end
3333

3434
function BandedMatrix(V::SubOperator{T,ConcreteConversion{Ultraspherical{LT,DD,RR},Ultraspherical{LT,DD,RR},T},
35-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {T,LT,DD,RR}
35+
NTuple{2,UnitRange{Int}}}) where {T,LT,DD,RR}
3636

3737
n,m = size(V)
3838
V_l, V_u = bandwidths(V)
@@ -66,7 +66,7 @@ end
6666

6767

6868
function BandedMatrix(S::SubOperator{T,ConcreteDerivative{Chebyshev{DD,RR},K,T},
69-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {T,K,DD,RR}
69+
NTuple{2,UnitRange{Int}}}) where {T,K,DD,RR}
7070

7171
n,m = size(S)
7272
ret = BandedMatrix{eltype(S)}(undef, (n,m), bandwidths(S))
@@ -92,7 +92,7 @@ end
9292

9393

9494
function BandedMatrix(S::SubOperator{T,ConcreteDerivative{Ultraspherical{LT,DD,RR},K,T},
95-
Tuple{UnitRange{Int},UnitRange{Int}}}) where {T,K,DD,RR,LT}
95+
NTuple{2,UnitRange{Int}}}) where {T,K,DD,RR,LT}
9696
n,m = size(S)
9797
ret = BandedMatrix{eltype(S)}(undef, (n,m), bandwidths(S))
9898
kr,jr = parentindices(S)

0 commit comments

Comments
 (0)