Skip to content

Instantly share code, notes, and snippets.

@MechCoder
Created May 1, 2014 17:38
Show Gist options
  • Save MechCoder/0cf4b7a55e1ac6d6c900 to your computer and use it in GitHub Desktop.
Save MechCoder/0cf4b7a55e1ac6d6c900 to your computer and use it in GitHub Desktop.
hello.pyx
from libc.math cimport fabs, sqrt
cimport cython
cdef extern from "cblas.h":
void daxpy "cblas_daxpy"(int N, double alpha, double *X, int incX,
double *Y, int incY)
def b(int x):
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment