JuliaApproximation / JuliaApproximation/FastTransforms.jl

`cheb2ultra` seems unreasonably slow

Open
#204 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
281
Forks
27
PR merge metrics
No merged PRs in 30d

Description

julia> x = rand(1000);

julia> y1 = @btime FastTransforms.cheb2ultra($x, 2);
  24.224 ms (2 allocations: 7.98 KiB)

julia> y2 = @btime ApproxFunBase.mul_coefficients(Conversion(Chebyshev(), Ultraspherical(2)), $x);
  45.568 μs (13 allocations: 63.27 KiB)

julia> y1 ≈ y2
true

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Julia benchmark comparing FastTransforms.cheb2ultra(x, 2) with ApproxFunBase.mul_coefficients for a length-1000 random vector. Investigate the implementation or entry point for cheb2ultra and preserve the observed numerical equivalence while addressing the reported performance gap.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.