Skip to content

Commit 975015b

Browse files
authored
replace Base.getindex/Base.size by getindex/size (#250)
1 parent 0141c12 commit 975015b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ApproxFunOrthogonalPolynomials.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import Base: convert, getindex, eltype, <, <=, +, -, *, /, ^, ==,
6161
minimum, maximum, extrema, zeros, one, promote_rule,
6262
getproperty, real, imag, max, min, log, acos,
6363
sin, cos, asinh, acosh, atanh, ones,
64-
Matrix
64+
Matrix, size
6565
# atan, tan, tanh, asin, sec, sinh, cosh,
6666
# split
6767

@@ -106,8 +106,8 @@ function ShiftedChebyshevGrid(grid::G, shift::S, scale::S) where {G,S}
106106
T = typeof(zero(eltype(G)) * zero(S))
107107
ShiftedChebyshevGrid{T,S,G}(grid, shift, scale)
108108
end
109-
Base.size(S::ShiftedChebyshevGrid) = size(S.grid)
110-
Base.@propagate_inbounds Base.getindex(S::ShiftedChebyshevGrid, i::Int) = S.shift + S.grid[i] * S.scale
109+
size(S::ShiftedChebyshevGrid) = size(S.grid)
110+
Base.@propagate_inbounds getindex(S::ShiftedChebyshevGrid, i::Int) = S.shift + S.grid[i] * S.scale
111111
function Base.showarg(io::IO, S::ShiftedChebyshevGrid, toplevel::Bool)
112112
print(io, "ShiftedChebyshevGrid{", eltype(S), "}")
113113
end

src/Spaces/Jacobi/JacobiOperators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ bandwidths(::ConcreteConversion{<:Jacobi,<:Jacobi}) = (0,1)
180180

181181

182182

183-
function Base.getindex(C::ConcreteConversion{<:Jacobi,<:Jacobi,T},k::Integer,j::Integer) where {T}
183+
function getindex(C::ConcreteConversion{<:Jacobi,<:Jacobi,T},k::Integer,j::Integer) where {T}
184184
L=C.domainspace
185185
if L.b+1==C.rangespace.b
186186
if j==k

0 commit comments

Comments
 (0)