Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
A very simple Cython project which demonstrates how to call FFTW natively
- Host: GitHub
- URL: https://github.com/rpep/cython-fftw
- Owner: rpep
- License: bsd-3-clause
- Created: 2018-05-08T11:08:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T04:19:40.000Z (over 2 years ago)
- Last Synced: 2023-03-13T06:54:34.374Z (almost 2 years ago)
- Topics: cython, fft, fftw, wrapper
- Language: C
- Size: 10.7 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```