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

Function _block_concatenate

numpy/core/shape_base.py:915–923  ·  view source on GitHub ↗
(arrays, list_ndim, result_ndim)

Source from the content-addressed store, hash-verified

913
914
915def _block_concatenate(arrays, list_ndim, result_ndim):
916 result = _block(arrays, list_ndim, result_ndim)
917 if list_ndim == 0:
918 # Catch an edge case where _block returns a view because
919 # `arrays` is a single numpy array and not a list of numpy arrays.
920 # This might copy scalars or lists twice, but this isn't a likely
921 # usecase for those interested in performance
922 result = result.copy()
923 return result

Callers 2

blockFunction · 0.85

Calls 2

_blockFunction · 0.85
copyMethod · 0.45

Tested by 1