Skip to content

Commit

Permalink
fix jacobi evaluation (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored Aug 18, 2022
1 parent 987df98 commit b08b5aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ApproxFunOrthogonalPolynomials"
uuid = "b70543e2-c0d9-56b8-a290-0d4d6d4de211"
version = "0.4.15"
version = "0.4.16"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand Down
2 changes: 1 addition & 1 deletion src/Spaces/Jacobi/JacobiOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ end

function getindex(op::ConcreteEvaluation{<:Jacobi,<:Number},kr::AbstractRange)
@assert op.order == 0
jacobip(eltype(op),kr-1,op.space.a,op.space.b,tocanonical(domain(op),op.x))
jacobip(eltype(op),kr.-1,op.space.a,op.space.b,tocanonical(domain(op),op.x))
end


Expand Down
7 changes: 7 additions & 0 deletions test/JacobiTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ import ApproxFunOrthogonalPolynomials: jacobip
@test norm((Fun(f,sp2)-f2).coefficients)<100eps()
@test norm((Fun(f,sp3)-f3).coefficients)<100eps()
@test norm((Fun(f,sp4)-f4).coefficients)<200eps()

f = Fun(Jacobi(0,0), Float64[1,2,3])
for x in [-1, 0, 1]
g = Evaluation(x) * f
@test ncoefficients(g) == 1
@test coefficients(g)[1] == f(x)
end
end

@testset "Conversion" begin
Expand Down

2 comments on commit b08b5aa

@jishnub
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/66476

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.16 -m "<description of version>" b08b5aad372e8aa73181b43356184e666393c514
git push origin v0.4.16

Please sign in to comment.