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

Function PyArray_CopyInto

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

NUMPY_API * Copy an Array into another array. * Broadcast to the destination shape if necessary. * * Returns 0 on success, -1 on failure. */

Source from the content-addressed store, hash-verified

2770 * Returns 0 on success, -1 on failure.
2771 */
2772NPY_NO_EXPORT int
2773PyArray_CopyInto(PyArrayObject *dst, PyArrayObject *src)
2774{
2775 return PyArray_AssignArray(dst, src, NULL, NPY_UNSAFE_CASTING);
2776}
2777
2778/*NUMPY_API
2779 * Move the memory of one array into another, allowing for overlapping data.

Callers 11

array_astypeFunction · 0.85
PyArray_FromArrayFunction · 0.85
PyArray_CopyAsFlatFunction · 0.85
PyArray_CastToTypeFunction · 0.85
PyArray_CastToFunction · 0.85
npyiter_allocate_arraysFunction · 0.85
ndarray_from_pyobjFunction · 0.85
copy_ND_arrayFunction · 0.85

Calls 1

PyArray_AssignArrayFunction · 0.85

Tested by

no test coverage detected