JuliaApproximation / JuliaApproximation/ApproxFun.jl

Fourier with BigFloat (ERROR: interlace not defined)

Open
#737 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
559
Forks
71
PR merge metrics
No merged PRs in 30d

Description

Hi,

When trying to make Fourier approximations work with BigFloat coefficients instead of Float64 ones, eg in the following minimal example:

using ApproxFun

# FS = Fourier(0..2π)
FS = Fourier(BigFloat(0)..2*BigFloat(π))
f = Fun(exp ∘ cos, FS)

I get the following error trace (which does not occur with Float64 instead of BigFloat):

UndefVarError: interlace not defined
in top-level scope at these/hilbert16/src/abintvalid/test-interlace.jl:6
in Fun at ApproxFunBase/jsbXG/src/constructors.jl:177
in default_Fun at ApproxFunBase/jsbXG/src/constructors.jl:121
in default_Fun at ApproxFunBase/jsbXG/src/constructors.jl:72
in default_Fun at ApproxFunBase/jsbXG/src/constructors.jl:57
in default_Fun at ApproxFunBase/jsbXG/src/constructors.jl:44
in transform at ApproxFunFourier/xV5Mx/src/ApproxFunFourier.jl:508 
in * at ApproxFun/GOMNa/src/Extras/fftGeneric.jl:119

The packages I'm using:

ApproxFun v0.12.5
ApproxFunBase v0.4.3
ApproxFunFourier v0.2.9

If it helps, an easy patch that I've been using so far is to replace the two occurences of "interlace" in lines 119 and 120 in
ApproxFun.jl/src/Extras/fftGeneric.jl by "ApproxFunBase.interlace".

Thanks in advance :)
Florent

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

The failure is reported in ApproxFun.jl/src/Extras/fftGeneric.jl at lines 119-120; start by tracing the BigFloat Fourier path from the minimal example and checking how interlace is resolved. Done means the example constructs the Fourier Fun with BigFloat coefficients without UndefVarError, while Float64 behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.