numpy  2.0.0
src/multiarray/alloc.h File Reference

Go to the source code of this file.

Defines

#define NPY_NO_DEPRECATED_API   NPY_API_VERSION
#define _MULTIARRAYMODULE

Functions

NPY_NO_EXPORT void * npy_alloc_cache (npy_uintp sz)
NPY_NO_EXPORT void * npy_alloc_cache_zero (npy_uintp sz)
NPY_NO_EXPORT void npy_free_cache (void *p, npy_uintp sd)
NPY_NO_EXPORT void * npy_alloc_cache_dim (npy_uintp sz)
NPY_NO_EXPORT void npy_free_cache_dim (void *p, npy_uintp sd)

Define Documentation

#define NPY_NO_DEPRECATED_API   NPY_API_VERSION

Function Documentation

array data cache, sz is number of bytes to allocate
dimension/stride cache, uses a different allocator and is always a multiple of npy_intp
dims + strides
zero initialized data, sz is number of bytes to allocate
NPY_NO_EXPORT void npy_free_cache_dim ( void *  p,
npy_uintp  sd 
)
dims + strides

References _PyDataMem_eventhook, NPY_ALLOW_C_API, and NPY_ALLOW_C_API_DEF.