[Numpy-discussion] int16 or int32 for C int ?

Nicolas Pernetty nicopernetty at yahoo.fr
Sun Jun 26 17:34:44 CDT 2005


I would like to create a numarray array from a C buffer of 'int' but I
don't quite know how to handle different 'int' representation (16 or 32

For instante should I use :

int a[10][20];
x = NA_NewArray(a, tInt16, 2, 10, 20);

or :
int a[10][20];
x = NA_NewArray(a, tInt32, 2, 10, 20);

Should I use some macro to determine size of int ?

Thanks in advance for any help,

More information about the Numpy-discussion mailing list