Skip to content

Commit 0614ba0

Browse files
authored
specialize components for tuple directsumspace Fun (#385)
1 parent 6cd54ea commit 0614ba0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Spaces/SumSpace.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ function interlace(v::Union{Tuple,Vector{Any}},sp::DirectSumSpace)
403403
end
404404

405405
components(f::Fun{<:DirectSumSpace}) = [component(f,j) for j=1:ncomponents(f)]
406+
components(f::Fun{<:DirectSumSpace{<:Tuple}}) = ntuple(j->component(f,j), ncomponents(f))
406407

407408
function Fun(v::AbstractVector{F},::Type{PiecewiseSpace}) where F<:Fun
408409
sp = PiecewiseSpace(map(space,v))

0 commit comments

Comments
 (0)