MCPcopy Create free account
hub / github.com/numpy/numpy / npy_free_cache_dim

Function npy_free_cache_dim

numpy/core/src/multiarray/alloc.c:197–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197NPY_NO_EXPORT void
198npy_free_cache_dim(void * p, npy_uintp sz)
199{
200 /* see npy_alloc_cache_dim */
201 if (sz < 2) {
202 sz = 2;
203 }
204 _npy_free_cache(p, sz, NBUCKETS_DIM, dimcache,
205 &PyArray_free);
206}
207
208/* Similar to array_dealloc in arrayobject.c */
209static inline void

Callers 3

npy_free_cache_dim_objFunction · 0.85
npy_free_cache_dim_arrayFunction · 0.85
array_deallocFunction · 0.85

Calls 1

_npy_free_cacheFunction · 0.85

Tested by

no test coverage detected