Skip to content

Commit 36e370f

Browse files
authored
Relax AbstractArray check in InterlaceOperator (#573)
1 parent fa75f5a commit 36e370f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Operators/general/InterlaceOperator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function InterlaceOperator(ops::AbstractMatrix{<:Operator},ds::Space,rs::Space;
157157
rsi = interlacer(rs)
158158

159159
T = promote_eltypeof(ops)
160-
opsm = ops isa AbstractMatrix{Operator{T}} ? ops :
160+
opsm = ops isa AbstractMatrix{<:Operator{T}} ? ops :
161161
map(x -> strictconvert(Operator{T}, x), ops)
162162
InterlaceOperator(opsm,ds,rs,
163163
cache(dsi),
@@ -192,7 +192,7 @@ function InterlaceOperator(ops::VectorOrTupleOfOp, ds::Space, rs::Space;
192192

193193
T = promote_eltypeof(ops)
194194
opsabsv = convert_vector_or_svector(ops)
195-
opsv = opsabsv isa AbstractVector{Operator{T}} ? opsabsv :
195+
opsv = opsabsv isa AbstractVector{<:Operator{T}} ? opsabsv :
196196
map(x -> convert(Operator{T}, x), opsabsv)
197197
InterlaceOperator(opsv,ds,rs,
198198
cache(BlockInterlacer(tuple(blocklengths(ds)))),

0 commit comments

Comments
 (0)