Skip to content

zouzias/cython-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cython-examples Build Status

Examples calling C code from Python via Cython.

  • hello-world: Hello world example
  • dot: Inner product between two vectors
  • multiply: Scale vector by a given constant
  • scipy-sparse-frob: Frobenius norm of SciPy sparse matrices

Build module

cd hello-world
./build-module.sh

You may need to install cython, i.e., pip install cython scipy or pip3

Run module

Start python and run the module as follows

Python 2.7.12 (default, Jun 29 2016, 14:05:02) 
>>> import hello_caller
>>> hello_caller.hello()
Hello world!
>>> 

About

Examples using Cython

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published