numpy  2.0.0
src/umath/struct_ufunc_test.c.src File Reference
#include "Python.h"
#include "math.h"
#include "numpy/ndarraytypes.h"
#include "numpy/ufuncobject.h"
#include "numpy/npy_3kcompat.h"

Defines

#define NPY_NO_DEPRECATED_API   NPY_API_VERSION

Functions

static void add_uint64_triplet (char **args, npy_intp *dimensions, npy_intp *steps, void *data)
PyMODINIT_FUNC initstruct_ufunc_test (void)

Variables

static PyMethodDef StructUfuncTestMethods []

Define Documentation

#define NPY_NO_DEPRECATED_API   NPY_API_VERSION

Function Documentation

static void add_uint64_triplet ( char **  args,
npy_intp dimensions,
npy_intp steps,
void *  data 
) [static]
The loop definition must precede the PyMODINIT_FUNC.
PyMODINIT_FUNC initstruct_ufunc_test ( void  )

Variable Documentation

PyMethodDef StructUfuncTestMethods[] [static]
Initial value:
 {
    {NULL, NULL, 0, NULL}
}
struct_ufunc_test.c This is the C code for creating your own NumPy ufunc for a structured array dtype.
Details explaining the Python-C API can be found under 'Extending and Embedding' and 'Python/C API' at docs.python.org .