Created
April 27, 2019 08:30
-
-
Save justdoit0823/4262cebdaa8853a23e430478973124d6 to your computer and use it in GitHub Desktop.
Test PyUFuncObject size.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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