(arrays, list_ndim, result_ndim)
| 986 | |
| 987 | |
| 988 | def _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 |
searching dependent graphs…