Git Product home page Git Product logo

Comments (6)

MikaelSlevinsky avatar MikaelSlevinsky commented on September 27, 2024 2

Did you try loading GenericFFT? Here's an alternative that works in ApproxFun

julia> using ApproxFun, GenericFFT

julia> f = (r,θ)-> sin(100*r*cos(θ))
#19 (generic function with 1 method)

julia> S = Chebyshev(big"0.1"..big"1.0")Fourier(big"0.0"..big"2.0"*π)
Chebyshev(0.1000000000000000000000000000000000000000000000000000000000000000000000000000002 .. 1.0)  Fourier(【0.0,6.283185307179586476925286766559005768394338798750211641949889184615632812572396❫)

julia> F = ProductFun(LowRankFun(f, S; gridx = 256, gridy = 256))
ProductFun on Chebyshev(0.1000000000000000000000000000000000000000000000000000000000000000000000000000002 .. 1.0)  Fourier(【0.0,6.283185307179586476925286766559005768394338798750211641949889184615632812572396❫)

julia> coefficients(F); # get the array of coefficients

julia> f(big"0.123", big"0.456")
-0.9988661226402205869689991698845071591411740075338145723676043325127213580466635

julia> F(big"0.123", big"0.456")
-0.998866122640220586968999169884507159141174007533814572367604332512721358046603

from classicalorthogonalpolynomials.jl.

dlfivefifty avatar dlfivefifty commented on September 27, 2024

GenericFFT.jl

try loading that it might just work

from classicalorthogonalpolynomials.jl.

TSGut avatar TSGut commented on September 27, 2024

I thought GenericFFT was a mirror of the Fourier functionality in FastTransforms?

from classicalorthogonalpolynomials.jl.

ioannisPApapadopoulos avatar ioannisPApapadopoulos commented on September 27, 2024

GenericFFT.jl gives the same error when using ClassicalOrthogonalPolynomials.jl but the ApproxFun code does work. Thanks @MikaelSlevinsky

from classicalorthogonalpolynomials.jl.

dlfivefifty avatar dlfivefifty commented on September 27, 2024

Odd as ApproxFunFourier.jl uses the exact same transform (FFTW.plan_r2r!(x, FFTW.HC2R))

So I'm confused how the ApproxFun code is working

from classicalorthogonalpolynomials.jl.

dlfivefifty avatar dlfivefifty commented on September 27, 2024

Ah I see we special cased the transform for BigFloat to call fft:

https://github.com/JuliaApproximation/ApproxFun.jl/blob/6a8fdd95e6147547d964d76900f65dcb47f803b0/src/Extras/fftGeneric.jl#L47

from classicalorthogonalpolynomials.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.