Skip to content

Instantly share code, notes, and snippets.

@libbkmz
Created April 17, 2019 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libbkmz/3825d11ca1089db65b228b57f5e592da to your computer and use it in GitHub Desktop.
Save libbkmz/3825d11ca1089db65b228b57f5e592da to your computer and use it in GitHub Desktop.
cimport cython
# USE cmdline below to build extension
# python setup.py build_ext --inplace --force
import numpy as np
cimport numpy as cnp
from libc.stdlib cimport rand, srand, RAND_MAX
cdef extern from "<Windows.h>":
void DebugBreak()
# @cython.profile(True)
# @cython.linetrace(True)
# @cython.embedsignature (True)
# @cython.binding(True)
@cython.boundscheck (False)
@cython.wraparound (False)
@cython.cdivision(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment