MCPcopy Index your code
hub / github.com/numpy/numpy / _block_concatenate

Function _block_concatenate

numpy/_core/shape_base.py:988–996  ·  view source on GitHub ↗
(arrays, list_ndim, result_ndim)

Source from the content-addressed store, hash-verified

986
987
988def _block_concatenate(arrays, list_ndim, result_ndim):
989 result = _block(arrays, list_ndim, result_ndim)
990 if list_ndim == 0:
991 # Catch an edge case where _block returns a view because
992 # `arrays` is a single numpy array and not a list of numpy arrays.
993 # This might copy scalars or lists twice, but this isn't a likely
994 # usecase for those interested in performance
995 result = result.copy()
996 return result

Callers 2

blockFunction · 0.85

Calls 2

_blockFunction · 0.85
copyMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…