Skip to content

Instantly share code, notes, and snippets.

@justdoit0823
Created April 27, 2019 08:30
Show Gist options
  • Save justdoit0823/4262cebdaa8853a23e430478973124d6 to your computer and use it in GitHub Desktop.
Save justdoit0823/4262cebdaa8853a23e430478973124d6 to your computer and use it in GitHub Desktop.
Test PyUFuncObject size.
#include "stdio.h"
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
// compile with comamnd `gcc -I/usr/local/lib/python3.6/site-packages/numpy/core/include $(python3.6m-config --cflags) test_ufunc_type_size.c`
int main(int argc, char * argv[]) {
printf("ufunc type size is %ld.\n", sizeof(PyUFuncObject));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment