Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rpep/cython-fftw

A very simple Cython project which demonstrates how to call FFTW natively
https://github.com/rpep/cython-fftw

cython fft fftw wrapper

Last synced: 27 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:

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

To test:

```bash
make test
```