Skip to content

Commit b0155d2

Browse files
authored
Replace getindex(sp,k) with component(sp,k) (#121)
1 parent efe368f commit b0155d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Caching/almostbanded.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function CachedOperator(io::InterlaceOperator{T,1};padding::Bool=false) where T
2020
md=0
2121
for k=1:length(io.ops)
2222
if k i
23-
d=dimension(rs[k])
23+
d=dimension(component(rs,k))
2424
nds+=d
2525
md=max(md,d)
2626
end
@@ -29,7 +29,7 @@ function CachedOperator(io::InterlaceOperator{T,1};padding::Bool=false) where T
2929

3030
isend=true
3131
for k=i+1:length(io.ops)
32-
if dimension(rs[k]) == md
32+
if dimension(component(rs,k)) == md
3333
isend=false
3434
end
3535
end
@@ -103,13 +103,13 @@ function CachedOperator(io::InterlaceOperator{T,2};padding::Bool=false) where T
103103

104104
# we only support block size 1 for now
105105
for k in d∞
106-
bl = blocklengths(ds[k])
106+
bl = blocklengths(component(ds,k))
107107
if !(bl isa AbstractFill) || getindex_value(bl) 1
108108
return default_CachedOperator(io;padding=padding)
109109
end
110110
end
111111
for k in r∞
112-
bl = blocklengths(rs[k])
112+
bl = blocklengths(component(rs,k))
113113
if !(bl isa AbstractFill) || getindex_value(bl) 1
114114
return default_CachedOperator(io;padding=padding)
115115
end
@@ -241,7 +241,7 @@ function resizedata!(co::CachedOperator{T,AlmostBandedMatrix{T},
241241
# fill rows
242242
K=k=1
243243
while k r
244-
if isfinite(dimension(rs[ri[K][1]]))
244+
if isfinite(dimension(component(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
247247
end

0 commit comments

Comments
 (0)