Skip to content

A very simple Cython project which demonstrates how to call FFTW natively

License

Notifications You must be signed in to change notification settings

rpep/cython-fftw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapping FFTW methods with Cython

This repository just shows how simple it is to wrap up C functions with Cython so that they can be used in Python.

All of the interesting code here is written in C. The point of this is not to show how we can do complex wrapping with Cython; it's to show that if you already have everything set up in C functions, the Cython code can be very straightforward and not have complex type definitions. This is my preferred method of using Cython, as it gives the best performance.

To build this:

virtualenv env
source env/bin/activate
pip install -r requirements.txt
make

To test:

make test

About

A very simple Cython project which demonstrates how to call FFTW natively

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published