Example of a python module including cython and openmp
Project description
Simple template to implement an algorithm with cython and openmp. It implements simple examples to demonstrate the speed up obtained by using cython. The module must be compiled to be used inplace:
python setup.py build_ext --inplace
Generate the setup in subfolder dist:
python setup.py sdist
Generate the documentation in folder dist/html:
python -m sphinx -T -b html doc dist/html
Run the unit tests:
python -m unittest discover tests
Or:
python -m pytest
To check style:
python -m flake8 td3a_cpp tests examples
The function check or the command line python -m td3a_cpp check checks the module is properly installed and returns processing time for a couple of functions or simply:
import td3a_cpp td3a_cpp.check()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
td3a_cpp-0.1.1.tar.gz
(474.7 kB
view details)
File details
Details for the file td3a_cpp-0.1.1.tar.gz
.
File metadata
- Download URL: td3a_cpp-0.1.1.tar.gz
- Upload date:
- Size: 474.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35429f2b759cdd0f15dd55ab45c15db297e2676f9141a841b39ab7e1806df35 |
|
MD5 | 4643af29413305c5056608eaa7dbe861 |
|
BLAKE2b-256 | 437319274f20cbdadb09192e832bc00efc51e1b3e226dc554d3e6dd468d34233 |