We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 234dd89 commit a40c1c7Copy full SHA for a40c1c7
src/Spaces/ProductSpaceOperators.jl
@@ -227,8 +227,11 @@ for (Op,OpWrap) in ((:Derivative,:DerivativeWrapper),(:Integral,:IntegralWrapper
227
@inline function $_Op(S::PiecewiseSpace, k::Number)
228
assert_integer(k)
229
t = map(s->$Op(s,k),components(S))
230
+ allbanded = all(isbanded, t)
231
+ ds, rs = S, SumSpace(map(rangespace, t))
232
D = Diagonal(convert_vector_or_svector(t))
- O = InterlaceOperator(D, PiecewiseSpace)
233
+ bw = interlace_bandwidths(D, ds, rs, allbanded)
234
+ O = InterlaceOperator(D, ds, rs, bw)
235
$OpWrap(O,k)
236
end
237
@inline function $_Op(S::ArraySpace, k::Number)
@@ -257,7 +260,7 @@ end
257
260
allbanded = all(isbanded, t)
258
261
259
262
ds, rs = S, SumSpace(map(rangespace, t))
- bw = interlace_bandwidths(D, ds, rs)
263
264
O = InterlaceOperator(D, ds, rs, bw)
265
DerivativeWrapper(O,k)
266
else
0 commit comments