Skip to content

Source code for use when demonstrating Cython, Pybind11, SWIG and Boost

Notifications You must be signed in to change notification settings

blindij/python-ctools-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status License

python-cython-demo

Inspired by Kurt W. Smith's book on Cython

Example

This example make use of a simple C++ source code which implements two Taylor series sinus() and cosinus(). The point is to illustrate how C/C++ functions can be called from python with the use of Cython.

Lower-level learning goals

  • Show how distutils can be used to build a Python library
  • Show how CMake can be used to accomblish the same thing

Requirements

  • Python
  • Cython
  • CMake
  • C++ compilers

Installing Python dependencies

In this example using Virtual Environments but also Anaconda or Miniconda will do the job:

About

Source code for use when demonstrating Cython, Pybind11, SWIG and Boost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published