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

Function PyArray_NewFromDescrAndBase

numpy/core/src/multiarray/ctors.c:1006–1015  ·  view source on GitHub ↗

* Sets the base object using PyArray_SetBaseObject */

Source from the content-addressed store, hash-verified

1004 * Sets the base object using PyArray_SetBaseObject
1005 */
1006NPY_NO_EXPORT PyObject *
1007PyArray_NewFromDescrAndBase(
1008 PyTypeObject *subtype, PyArray_Descr *descr,
1009 int nd, npy_intp const *dims, npy_intp const *strides, void *data,
1010 int flags, PyObject *obj, PyObject *base)
1011{
1012 return PyArray_NewFromDescr_int(subtype, descr, nd,
1013 dims, strides, data,
1014 flags, obj, base, 0);
1015}
1016
1017/*
1018 * Creates a new array with the same shape as the provided one,

Callers 15

_get_partFunction · 0.85
array_wraparrayFunction · 0.85
array_preparearrayFunction · 0.85
array_getarrayFunction · 0.85
PyArray_NewFromDescrFunction · 0.85
_array_from_buffer_3118Function · 0.85
PyArray_FromAny_intFunction · 0.85
PyArray_FromInterfaceFunction · 0.85
PyArray_FromBufferFunction · 0.85
npyiter_seq_itemFunction · 0.85
PyArray_DiagonalFunction · 0.85

Calls 1

PyArray_NewFromDescr_intFunction · 0.85

Tested by

no test coverage detected