Lines Matching refs:PyMem_Malloc
126 ndbuf = PyMem_Malloc(sizeof *ndbuf); in ndbuf_new()
137 ndbuf->data = PyMem_Malloc(len); in ndbuf_new()
553 mem = PyMem_Malloc(dest->shape[dest->ndim-1] * dest->itemsize); in copy_buffer()
708 item = PyMem_Malloc(base->itemsize); in ndarray_as_list()
809 fmt = PyMem_Malloc(PyBytes_GET_SIZE(tmp)+1); in get_format()
892 s = PyMem_Malloc(base->ndim * (sizeof *s)); in strides_from_shape()
1048 data = PyMem_Malloc(ndbuf->len + addsize); in init_suboffsets()
1083 base->suboffsets = PyMem_Malloc(base->ndim * (sizeof *base->suboffsets)); in init_suboffsets()
1746 shape = PyMem_Malloc(base->ndim * (sizeof *shape)); in copy_structure()
1747 strides = PyMem_Malloc(base->ndim * (sizeof *strides)); in copy_structure()
1753 suboffsets = PyMem_Malloc(base->ndim * (sizeof *suboffsets)); in copy_structure()
2171 mem = PyMem_Malloc(src->len); in ndarray_tobytes()
2213 base->suboffsets = PyMem_Malloc(base->ndim * (sizeof *base->suboffsets)); in ndarray_add_suboffsets()
2451 buf = PyMem_Malloc(view.len); in py_buffer_to_contiguous()