Skip to content

Commit 7b924fa

Browse files
promote space's rangetype with operator's eltype
1 parent f3ef341 commit 7b924fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Spaces/QuotientSpace.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct QuotientSpace{S,O,D,R} <: Space{D,R}
1414
end
1515
end
1616

17-
QuotientSpace(sp::Space{D,R}, bcs::Operator) where {D,R} = QuotientSpace{typeof(sp), typeof(bcs), D, R}(sp, bcs)
17+
QuotientSpace(sp::Space{D,R}, bcs::Operator{T}) where {D,R,T} = QuotientSpace{typeof(sp), typeof(bcs), D, promote_type(R, T)}(sp, bcs)
1818
QuotientSpace(bcs::Operator) = QuotientSpace(domainspace(bcs), bcs)
1919

2020
domain(QS::QuotientSpace) = domain(QS.space)
@@ -296,4 +296,4 @@ function BandedMatrix(S::SubOperator{T,ConcreteConversion{QuotientSpace{SP,O,D,R
296296
end
297297

298298
ret[kr,jr]
299-
end
299+
end

0 commit comments

Comments
 (0)