stack
Stack the input arrays along the given dimension.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
arrays
|
Iterable[SparseArray]
|
The input arrays to stack. |
required |
axis
|
int
|
The axis along which to stack the input arrays. |
0
|
compressed_axes
|
iterable
|
The axes to compress if returning a GCXS array. |
None
|
Returns:
Type | Description |
---|---|
SparseArray
|
The output stacked array. |
Raises:
Type | Description |
---|---|
ValueError
|
If all elements of |
See Also
numpy.stack
: NumPy equivalent function
Source code in sparse/numba_backend/_common.py
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
|