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

Function array_subscript_asarray

numpy/core/src/multiarray/mapping.c:1316–1320  ·  view source on GitHub ↗

make sure subscript always returns an array object */

Source from the content-addressed store, hash-verified

1314
1315/* make sure subscript always returns an array object */
1316NPY_NO_EXPORT PyObject *
1317array_subscript_asarray(PyArrayObject *self, PyObject *op)
1318{
1319 return PyArray_EnsureAnyArray(array_subscript(self, op));
1320}
1321
1322/*
1323 * Attempts to subscript an array using a field name or list of field names.

Callers 1

_void_compareFunction · 0.85

Calls 2

PyArray_EnsureAnyArrayFunction · 0.85
array_subscriptFunction · 0.85

Tested by

no test coverage detected