https://github.com/sdpython/td3a_cpp
Example of a python module using Cython and openmp
https://github.com/sdpython/td3a_cpp
Last synced: 5 months ago
JSON representation
Example of a python module using Cython and openmp
- Host: GitHub
- URL: https://github.com/sdpython/td3a_cpp
- Owner: sdpython
- License: mit
- Created: 2019-12-08T09:05:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T09:15:16.000Z (over 2 years ago)
- Last Synced: 2025-06-03T17:13:28.730Z (6 months ago)
- Language: Cython
- Size: 155 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
.. image:: https://circleci.com/gh/sdpython/td3a_cpp/tree/master.svg?style=svg
:target: https://circleci.com/gh/sdpython/td3a_cpp/tree/master
.. image:: https://travis-ci.com/sdpython/td3a_cpp.svg?branch=master
:target: https://app.travis-ci.com/github/sdpython/td3a_cpp
:alt: Build status
.. image:: https://ci.appveyor.com/api/projects/status/wvo6ovlaxi8ypua4?svg=true
:target: https://ci.appveyor.com/project/sdpython/td3a-cpp
:alt: Build Status Windows
.. image:: https://dev.azure.com/xavierdupre3/td3a_cpp/_apis/build/status/sdpython.td3a_cpp
:target: https://dev.azure.com/xavierdupre3/td3a_cpp/
.. image:: https://badge.fury.io/py/td3a_cpp.svg
:target: http://badge.fury.io/py/td3a_cpp
.. image:: http://img.shields.io/github/issues/sdpython/td3a_cpp.png
:alt: GitHub Issues
:target: https://github.com/sdpython/td3a_cpp/issues
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:alt: MIT License
:target: http://opensource.org/licenses/MIT
.. image:: https://img.shields.io/github/repo-size/sdpython/td3a_cpp
:target: https://github.com/sdpython/td3a_cpp/
:alt: size
td3a_cpp: template to use cython and C++ with python
====================================================
.. image:: https://raw.githubusercontent.com/sdpython/td3a_cpp/master/doc/_static/logo.png
:width: 50
`documentation `_
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()