(arrays, list_ndim, result_ndim)
| 913 | |
| 914 | |
| 915 | def _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 |