Returns (`arrays`, list_ndim, result_ndim, final_size)
(arrays)
| 952 | # or `_block_concatenate` without blocking large arrays to force the wisdom |
| 953 | # to trigger the desired path. |
| 954 | def _block_setup(arrays): |
| 955 | """ |
| 956 | Returns |
| 957 | (`arrays`, list_ndim, result_ndim, final_size) |
| 958 | """ |
| 959 | bottom_index, arr_ndim, final_size = _block_check_depths_match(arrays) |
| 960 | list_ndim = len(bottom_index) |
| 961 | if bottom_index and bottom_index[-1] is None: |
| 962 | raise ValueError( |
| 963 | f'List at {_block_format_index(bottom_index)} cannot be empty' |
| 964 | ) |
| 965 | result_ndim = max(arr_ndim, list_ndim) |
| 966 | return arrays, list_ndim, result_ndim, final_size |
| 967 | |
| 968 | |
| 969 | def _block_slicing(arrays, list_ndim, result_ndim): |
searching dependent graphs…