Skip to content

Commit 0cc55e8

Browse files
authored
Minor type-inference improvements in CachedOperator(::::InterlaceOperator{T,1}) (#456)
1 parent 3aa8b6a commit 0cc55e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Caching/almostbanded.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ function CachedOperator(intop::InterlaceOperator{T,1};padding::Bool = false) whe
44
ds = domainspace(intop)
55
rs = rangespace(intop)
66

7-
ind = findall(op->isinf(size(op,1)), intop.ops)
8-
if length(ind) 1 || !isbanded(intop.ops[ind[1]]) # is almost banded
7+
ind = findall(op->isinf(size(op,1))::Bool, intop.ops)
8+
if length(ind) 1 || !isbanded(intop.ops[ind[1]])::Bool # is almost banded
99
return default_CachedOperator(intop; padding)
1010
end
1111
i = ind[1]

0 commit comments

Comments
 (0)