Skip to content

An FFTLog code for efficiently computing integrals containing 1 spherical Bessel function or Bessel function or its 1st/2nd derivative.

License

Notifications You must be signed in to change notification settings

xfangcosmo/FFTLog-and-beyond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFTLog-and-beyond

An extended FFTLog code for efficiently computing integrals containing:

  • one Bessel function (i.e. Hankel transform); or

  • one spherical Bessel function; or

  • one 1st or 2nd-derivative of spherical Bessel function.

v2.0: fftlogx

The code is written in C (./src/) and provides a python wrapper (./fftlogx/). To use it, run

python setup.py install

to construct install the interface, then follow the test notebook provided in /test/ to import and use it.


The older version (v1.0):

The code is independently written and tested in python (./python/fftlog.py) and C (./cfftlog/).

See more details in Notes.pdf

Please cite Fang et al (2019); arXiv:1911.11947, if you find the algorithm or the code useful to your research.

Please feel free to use and adapt the code for your own purpose, and let me know if you are confused or find a bug (just open an issue). FFTLog-and-beyond is open source and distributed with the MIT license.

About

An FFTLog code for efficiently computing integrals containing 1 spherical Bessel function or Bessel function or its 1st/2nd derivative.

Resources

License

Stars

Watchers

Forks

Packages

No packages published