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

Function PyArray_Concatenate

numpy/core/src/multiarray/multiarraymodule.c:766–779  ·  view source on GitHub ↗

NUMPY_API * Concatenate * * Concatenate an arbitrary Python sequence into an array. * op is a python object supporting the sequence interface. * Its elements will be concatenated together to form a single * multidimensional array. If axis is NPY_MAXDIMS or bigger, then * each sequence object will be flattened before concatenation */

Source from the content-addressed store, hash-verified

764 * each sequence object will be flattened before concatenation
765*/
766NPY_NO_EXPORT PyObject *
767PyArray_Concatenate(PyObject *op, int axis)
768{
769 /* retain legacy behaviour for casting */
770 NPY_CASTING casting;
771 if (axis >= NPY_MAXDIMS) {
772 casting = NPY_UNSAFE_CASTING;
773 }
774 else {
775 casting = NPY_SAME_KIND_CASTING;
776 }
777 return PyArray_ConcatenateInto(
778 op, axis, NULL, NULL, casting, 0);
779}
780
781static int
782_signbit_set(PyArrayObject *arr)

Callers

nothing calls this directly

Calls 1

PyArray_ConcatenateIntoFunction · 0.85

Tested by

no test coverage detected