(tup, allow_unknown_chunksizes=False)
| 140 | |
| 141 | @derived_from(np) |
| 142 | def hstack(tup, allow_unknown_chunksizes=False): |
| 143 | if isinstance(tup, Array): |
| 144 | raise NotImplementedError( |
| 145 | "``hstack`` expects a sequence of arrays as the first argument" |
| 146 | ) |
| 147 | |
| 148 | if all(x.ndim == 1 for x in tup): |
| 149 | return concatenate( |
| 150 | tup, axis=0, allow_unknown_chunksizes=allow_unknown_chunksizes |
| 151 | ) |
| 152 | else: |
| 153 | return concatenate( |
| 154 | tup, axis=1, allow_unknown_chunksizes=allow_unknown_chunksizes |
| 155 | ) |
| 156 | |
| 157 | |
| 158 | @derived_from(np) |
no test coverage detected
searching dependent graphs…