Skip to content

Commit a7e7f6b

Browse files
committed
rangespace for normalized polynomial space multiplication
1 parent ac50ed6 commit a7e7f6b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Spaces/PolynomialSpace.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,3 +574,6 @@ end
574574

575575
ApproxFunBase.hasconcreteconversion_canonical(
576576
@nospecialize(::NormalizedPolynomialSpace), @nospecialize(_)) = true
577+
578+
rangespace(M::MultiplicationWrapper{<:PolynomialSpace,
579+
<:NormalizedPolynomialSpace}) = domainspace(M)

test/JacobiTest.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ using Static
258258

259259
@test (@inferred (n -> domainspace(Derivative(Jacobi(n,n), 2)))(1)) == Jacobi(1,1)
260260
@test (@inferred (n -> rangespace(Derivative(Jacobi(n,n), 2)))(1)) == Jacobi(3,3)
261+
262+
D = Derivative(NormalizedLegendre(), 2)
263+
@test (@inferred rangespace(D)) == Jacobi(2,2)
261264
end
262265

263266
@testset "identity Fun for interval domains" begin
@@ -306,6 +309,7 @@ using Static
306309
end
307310

308311
M1 = @inferred Multiplication(Fun(Legendre()), NormalizedLegendre())
312+
@test (@inferred rangespace(M1)) == NormalizedLegendre()
309313
@test M1 * Fun(x->x^4, NormalizedLegendre()) Fun(x->x^5, NormalizedLegendre())
310314
M2 = @inferred Multiplication(Fun(NormalizedLegendre()), Legendre())
311315
@test M2 * Fun(x->x^4, Legendre()) Fun(x->x^5, Legendre())

0 commit comments

Comments
 (0)