MCPcopy
hub / github.com/dask/dask / hstack

Function hstack

dask/array/routines.py:142–155  ·  view source on GitHub ↗
(tup, allow_unknown_chunksizes=False)

Source from the content-addressed store, hash-verified

140
141@derived_from(np)
142def 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)

Callers 1

_concat_cupy_sparseFunction · 0.85

Calls 2

concatenateFunction · 0.90
allFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…