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_deep tests examples
The function check or the command line python -m td3a_cpp_deep check checks the module is properly installed and returns processing time for a couple of functions or simply:
import td3a_cpp_deep td3a_cpp_deep.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_deep-0.1.0.tar.gz
(4.2 kB
view details)
File details
Details for the file td3a_cpp_deep-0.1.0.tar.gz
.
File metadata
- Download URL: td3a_cpp_deep-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cdd34a8d0d61d5323ebb4f3cc68c7a21f2aa08c20e218d47dfebc6f19239778 |
|
MD5 | 758bc121c03bd28d9773674ebfcaa3a0 |
|
BLAKE2b-256 | 283f463e2f1a63713dc07285bd3d7611a59e04edc9c989295b473126c3c94b38 |