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

Function PyArray_EnsureAnyArray

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

NUMPY_API*/

Source from the content-addressed store, hash-verified

2550
2551/*NUMPY_API*/
2552NPY_NO_EXPORT PyObject *
2553PyArray_EnsureAnyArray(PyObject *op)
2554{
2555 if (op && PyArray_Check(op)) {
2556 return op;
2557 }
2558 return PyArray_EnsureArray(op);
2559}
2560
2561/*
2562 * Private implementation of PyArray_CopyAnyInto with an additional order

Callers 4

array_subscript_asarrayFunction · 0.85
__New_PyArray_StdFunction · 0.85
PyArray_RoundFunction · 0.85
array_containsFunction · 0.85

Calls 1

PyArray_EnsureArrayFunction · 0.85

Tested by

no test coverage detected