squeeze
Remove singleton dimensions from array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x |
SparseArray
|
Input array. |
required |
axis |
int or tuple[int, ...]
|
The singleton axes to remove. By default all singleton axes are removed. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
output |
SparseArray
|
Array with singleton dimensions removed. |
Source code in sparse/numba_backend/_common.py
2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 | |