(chunks, start, stop)
| 127 | |
| 128 | |
| 129 | def _calc_lower_dimension_chunks(chunks, start, stop): |
| 130 | # We need the lower dimension chunks to match what the higher dimension chunks |
| 131 | # can be combined to, i.e. multiply the different dimensions |
| 132 | return tuple( |
| 133 | map( |
| 134 | lambda x: reduce(mul, x), |
| 135 | product(*chunks[start : stop + 1]), |
| 136 | ) |
| 137 | ) |
| 138 | |
| 139 | |
| 140 | def _smooth_chunks(ileft, ii, max_in_chunk, result_inchunks): |