Skip to content

Commit e43ab30

Browse files
authored
Reduce some type-params proliferation in polynomialspace (#339)
1 parent 301c8d9 commit e43ab30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Spaces/PolynomialSpace.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,31 +513,31 @@ end
513513
bandwidths(::ConcreteConversion{<:NormalizedPolynomialSpace{S},S}) where {S} = (0, 0)
514514
bandwidths(::ConcreteConversion{S,<:NormalizedPolynomialSpace{S}}) where {S} = (0, 0)
515515

516-
function getindex(C::ConcreteConversion{NormalizedPolynomialSpace{S,D,R},S,T},k::Integer,j::Integer) where {S,D<:IntervalOrSegment,R,T}
516+
function getindex(C::ConcreteConversion{<:NormalizedPolynomialSpace{S,<:IntervalOrSegment},S,T},k::Integer,j::Integer) where {S,T}
517517
if j==k
518518
inv(sqrt(normalization(T, C.rangespace, k-1)*arclength(domain(C.rangespace))/2))
519519
else
520520
zero(T)
521521
end
522522
end
523523

524-
function getindex(C::ConcreteConversion{S,NormalizedPolynomialSpace{S,D,R},T},k::Integer,j::Integer) where {S,D<:IntervalOrSegment,R,T}
524+
function getindex(C::ConcreteConversion{S,<:NormalizedPolynomialSpace{S,<:IntervalOrSegment},T},k::Integer,j::Integer) where {S,T}
525525
if j==k
526526
sqrt(normalization(T, C.domainspace, k-1)*arclength(domain(C.domainspace))/2)
527527
else
528528
zero(T)
529529
end
530530
end
531531

532-
function getindex(C::ConcreteConversion{NormalizedPolynomialSpace{S,D,R},S,T},k::Integer,j::Integer) where {S,D<:Ray,R,T}
532+
function getindex(C::ConcreteConversion{<:NormalizedPolynomialSpace{S,<:Ray},S,T},k::Integer,j::Integer) where {S,T}
533533
if j==k
534534
inv(sqrt(normalization(T, C.rangespace, k-1)))
535535
else
536536
zero(T)
537537
end
538538
end
539539

540-
function getindex(C::ConcreteConversion{S,NormalizedPolynomialSpace{S,D,R},T},k::Integer,j::Integer) where {S,D<:Ray,R,T}
540+
function getindex(C::ConcreteConversion{S,<:NormalizedPolynomialSpace{S,<:Ray},T},k::Integer,j::Integer) where {S,T}
541541
if j==k
542542
sqrt(normalization(T, C.domainspace, k-1))
543543
else

0 commit comments

Comments
 (0)